Running django fastcgi with daemontools is rather easy but getting it to run in the foreground with the proper user takes a bit of knowledge about how bash works and the tools in daemontools. In order to run the fastcgi daemon in the foreground you need to specify the daemonize=false option to the fastcgi command. Next the daemon will be started as the root user unless the daemon has an opt[...]
Running django with daemontools
Dec. 13, 2009
Django and nginx settings
July 3, 2009
One problem I keep encountering with setting up fastcgi with Django is that the default nginx fastcgi parameters cause django to load the top url no matter what url you try to go to. This is because the default nginx fastcgi parameters pass the SCRIPT_NAME parameter to the django instance which Django interprets incorrectly. In order to fix this you need to rename the SCRIPT_NAME parameter to[...]
