I have Nginx + uWSGI for Python Django app.
I have the following in my nginx.conf:
nginx.conf
location / { include uwsgi_params; uwsgi_pass
Looking at the uwsgi error logs and understanding what the problem has helped me. Issue was not related to Nginx configurations at all. My email host has changed and the code threw error while calling the send email code