I\'m running django on gunicorn+nginx. I\'m facing a problem with file uploads. Actually uploads are working fine but gunicorn times out thus causing this in nginx:
This might help someone with similar problem.
I was getting timeout error from nginx and gunicorn on my Django application. Since I was getting the timeout error from nginx, I couldn't see the real error from Django. After adding the new timeout like fijter suggested. I could see that the error was in the settings.py file.
If you set the DEBUG to False, and didn't add the domain name in the ALLOWED_HOSTS you might get this error.
I just added the domain in the ALLOWED_HOSTS in settings.py and the error was gone.
Very simple solution!