I\'m running django on Digital Ocean with gunicorn and nginx. Gunicorn for serving the django and nginx for static files.
Upon upl
Well, I worked on this issue for more than a week and finally was able to FIGURE IT OUT. Please follow links from digital ocean , but they did not pinpoint important issues one which includes
*1 connect() to unix:/tmp/myproject.sock failed (2: No such file or directory)
etc.
These issues are basically permission issue for connection between Nginx and Gunicorn. To make things simple, I recommend to give same nginx permission to every file/project/python program you create.
To solve all the issue follow this approach: First thing is :
Now just go to /etc/nginx/nginx.conf file. Go to the server module and append:
location / { include proxy_params; proxy_pass http<>:<>//unix:/home/nginx/myproject.sock; } REMOVE <> Do not follow the digitalocean aricle from here on