H
H
hhu2021-04-06 14:04:13
Django
hhu, 2021-04-06 14:04:13

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
606c4018746b2281155953.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Karabanov, 2021-04-06
@karabanov

uwsgi --socket uwsgi_nginx.sock --module shop.wsgi:application --chmod-socket=666

https://docs.djangoproject.com/en/3.1/howto/deploy...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question