Posts for spawning

Switch to mod_wsgi

I just switched the blog to mod_wsgi because I had some issues with Spawning deployment.

All I had to do was to create a mod_wsgi application from the WebFaction control panel, and edit htttp.conf to map ''/' to my blog's wsgi script:

WSGIPythonPath /home/yatiohi/envs/lanata/lib/python2.5/site-packages
WSGIScriptAlias / /home/yatiohi/repos/git/django-lanata-new/lanata/wsgi/server.wsgi

I am using virtuaenv so I had to make somehow apache use it. This can be done in many ways, hack apache start scripts to activate the environment, site.addsitedir() the env's site-package dir or use the WSGIPythonPath mod_wsgi directive. I find the later a bit clearer.

Everything seems to work as expected, for now at least :)