Getting Django running on nginx

Submitted by jeff on Thu, 04/01/2010 - 07:29.

I’m in the process of rolling out a little pet project using Django. This little gem proved indispensable in helping me to get Django to run on nginx.

http://code.djangoproject.com/wiki/ServerArrangements#nginx

Surprisingly I cut & paste the config into my server. With only a few obvious but minor changes the Django instance started working fine.

Start Server for Debugging

python manage.py runfcgi method=threaded host=127.0.0.1 port=8000 daemonize=false

Start Server for semi-production

python manage.py runfcgi method=threaded host=127.0.0.1 port=8000