Deploying Django on nginx

Firstly, if you chose to use nginx, then use gunicorn, its the best option out there, and if you so wish to use Apache, then you use mod_wsgi.

This will show you how to use gunicorn. Just to tell you how well it serves, gunicorn is used by Instagram, because they claim that it gives them better performance.

Setting up gunicorn is very simple and easy to do, and this tutorial here, gives you all the things necessary to make it happen very quickly.

This is their website.


Try this link using fastcgi mode
Or this link using uwsgi mode

Edit: fcgi mode is deprecated in django and will be removed. uwsgi is the favourable mode. One of the many references, check this