rtg
502 Bad Gateway nginx/1.18.0 (Ubuntu)
rtg
I don understand what is happening.
Charly
I don understand what is happening.
you need to look at the logs
rtg
I ca look nginx logs, but where are Gunicorn logs?
Charly
I ca look nginx logs, but where are Gunicorn logs?
depends on how are you running gunicorn
rtg
2022/05/03 22:14:24 [error] 47590#47590: *308 connect() to unix:/run/gunicorn.sock failed (111: Connection refused) while connecting to upstream, client: 88.9.102.33, server: example.eus, request: "GET / HTTP/1.1 ", upstream: "http://unix:/run/gunicorn.sock:/", host: "www.example.eus"
Charly
thats an nginx log
Krunal
I have legacy database in postgresql. While inspectdb how to match postgresql data types with django?
𝒮𝒽𝒶𝓏
Hello guys i am new to django, wanted to know how to check 300-400 websites are up or no using django response code can anyone please guide me on this
Dado
I need help Please, i'm using Django on Kali-linux, but it doesn't work well there's one week. So, I would like to remove the Django package and install another last one version 'cause i've cheked the python's version that i have on m'y pc, it's python2.
Cuteu
Which version of python you use to install django
foscraft
Alternatively you can use miniconda to create envirenments and install any version of python and django you want.
Shubham
Hello Did anybody know a good online code sandbox for django? Thank you
Maximiliano Exequiel
hi everybody i need some help with it... https://es.stackoverflow.com/questions/531902/actualizar-multiples-objetos-en-djangorestframework. ty
Anonymous
Hello I'm tying to serve template's Excel files, should I put them on the static folder or where?
Krunal
You mean inspectdb is not matching the correct data types?
I have a bitfield in postgresql and django detect it as a textfield. Which should be the best suitable data type for bit in django?
Prathmesh
SMTPSenderRefused error is showing while sending email in django
Prathmesh
What to do??
Bobosher
Hello. I ran into migration conflicts where two migrations with same migration number exist because of several developers working in parallel. In order to fix this problem, I tried to start from scratch by deleting all the migration files and removing the entire database and re-creating a blank one. Now I'm running makemigrations command and django's raising this exception: ImportError: cannot import name 'migrations' from 'django.db' Searched on google and found almost nothing related. Could you please, give some suggestion on handling this situation?
Doragonsureiyā
What to do??
Read this please: http://catb.org/~esr/faqs/smart-questions.html#intro
Dado
Alternatively you can use miniconda to create envirenments and install any version of python and django you want.
It's python 2.7.18 in use. I tryied others method to update python package but it has refused. Finally, I think i must remove the python's package also. How do you see!?
HamidReza Fekri
Hello What do you recommend before I start reading Django source code bc I found it difficult
Fan / Ac
Hello What do you recommend before I start reading Django source code bc I found it difficult
https://youtube.com/playlist?list=PLQVvvaa0QuDe9nqlirjacLkBYdgc2inh3
Fan / Ac
Thanks
first read django doc
HamidReza Fekri
first read django doc
I'm familiar with Django but I found Django Source Code difficult
HamidReza Fekri
Maybe advanced knowledge in Python is really necessary so what do you recommend
HamidReza Fekri
If anyone have useful experience in this case please share with me
Fan / Ac
HamidReza Fekri
knowing python is enough read doctstring and code
I've taken look at Django source but the structure is complicated and I don't know how to start (flow)
HamidReza Fekri
why do you want to read Django's source code?
Deeply understand whats happening behind because it can help me so much in some projects
cj
Deeply understand whats happening behind because it can help me so much in some projects
¯\_(ツ)_/¯ well.. source code is just Python, but you have to know how HTTP things work, how an ORM works, how to deal with some common security issues (read about OWASP-10) and some other things, just knowing bare-bone Python —no matter how "advanced" you are— is not enough
Fan / Ac
Tnx 🙏🏼🙏🏼
+ knowing about wsgi will help
HamidReza Fekri
Anonymous
How can i have multichoice integer field for model
Maximiliano Exequiel
NO = 0 SI = 1 NO_COMPLETADO = 2 CHOICES = ( (NO, 'No'), (SI, 'Sí'), (NO_COMPLETADO, 'No completado'), ) texto = models.TextField('texto', blank=True, null=True) choice = models.IntegerField('si/no', choices=CHOICES, default=NO_COMPLETADO)
Maximiliano Exequiel
like in the forms?
Maximiliano Exequiel
sory my english... https://stackoverflow.com/questions/27440861/django-model-multiplechoice
Anonymous
please can any one suggest me django resourse to learn
Doragonsureiyā
please can any one suggest me django resourse to learn
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Anonymous
which have proper explaination about all files
Anonymous
what r there use
Anonymous
i am beginer to django
Anonymous
i saw offical dic its find little hard to grasp
Maxim
Charly
Maxim
which have proper explaination about all files
does not fit well with this requirement
Anonymous
thank you
@l!®€z@
hello friend i cannot import model form app product and show me this error cannot import name 'product' from partially initialized module 'product.models' (most likely due to a circular import) (C:\Users\alireza\PycharmProjects\ecommerce\product\models.py)
Siya
Hey I am building an e learning platform. Can anyone recommend resources to follow for creating the Live classes module using zoom?
Raja
Error:Invariant violation text must be rendered within component
Raja
In react native whenever i use react-phone-number-input
Raja
How can i resolve it
Mirco
u r tooootally ot
Sunny
my serializer gives reponse like this when many=True [{a: 1}, {a: 2}] i want response like [1,2]
Mirco
my serializer gives reponse like this when many=True [{a: 1}, {a: 2}] i want response like [1,2]
why ? it's much correct as DRF generates it list of serialized objects
Matuo
Hi guys, i have one question How can login my user without django set session??
Matuo
It will set a cookie with the Django automatic login module, and I do not want this to be automatic and I want it to be manual
Matuo
I want this for when ( remmber me check box is true) then django set session
Mihail
how to add default EMAIL_BACKEND in pytest-django to send real messages to email adressess?
Mirco
how to add default EMAIL_BACKEND in pytest-django to send real messages to email adressess?
Don't absolutely do it In testing especially email must not be sent really!
Mihail
Don't absolutely do it In testing especially email must not be sent really!
I understand, but I would like to see end results at least on first steps. I could set my smtp server not right for example
Mihail
Maybe if you use djngo email bandit?
For your test environment you should enable the backend: EMAIL_BACKEND = 'bandit.backends.smtp.HijackSMTPBackend' I would like to do it without django-email-bandit to EmailBackend :D
Mihail
just setup a local server like Mailhog or just stick with Console Backend
will pytest-django not prevent the sending keys to them?