Gunicorn: A Python WSGI HTTP Server for UNIX. What is difference between uWSGI and Gunicorn?
You need both Nginx and Gunicorn (or something similar) for a proper Django deployment. Without this buffering Gunicorn will be easily susceptible to denial-of-service attacks. If you choose another proxy server you need to make sure that it buffers slow clients when you use default Gunicorn workers.
Nginx gateway timeout how to#
How to Fix 504 Gateway Timeout Error in NGINX How do I fix Nginx Error 504 Gateway Timeout? What is difference between uWSGI and Gunicorn?.How do I fix Nginx Error 504 Gateway Timeout?.