use nginx as proxy server + gunicorn. I dockerized project and when I run server via command "python3 manage.py runserver host:port" it works perfectly, but when I run it using gunicorn ("gunicorn --bind host:port core.wsg") it stiell works, but there is no static, all requests to static files responses with 404, please can anyone hint me where is the root of this problem? thanks.
The static files after the development will not be served by Python You have to serve them using a webserver for static files
In production, static files are served from the folder you mentioned inside the 'settings'. In order to move the files here, you have to run 'python manage.py collectstatic' to move the files to this folder. If you haven't done this, try this. Hopefully it will work.
Обсуждают сегодня