Answer the question
In order to leave comments, you need to log in
Why is the site not deployed to django?
Good afternoon! I tried to write my first site in django and now I want to host it on a VPS.
At the ngins+uwsgi+django startup stage, I try to run my project through unix socket
Command:
uwsgi --socket uwsgi_nginx.sock --module shop.wsgi --chmod-socket=666
but I run into a 502 error in the nginx logs (111: connection refused).
Tried like this and everything took off:
uwsgi --socket uwsgi_nginx.sock --wsgi-file test.py --chmod-socket=666 Tell me
, please, what could be the problem? Maybe there is a problem with the project structure and I implicitly specify the module? (shop.wsgi)
project structure
Answer the question
In order to leave comments, you need to log in
uwsgi --socket uwsgi_nginx.sock --module shop.wsgi:application --chmod-socket=666
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question