Tuesday, 18 August 2009

mod_python with django

well tried mod_python setup under Ubuntu.JJ
Lots of things learnt.
1. httpd.conf is a empty file under apache2. Insert the code you expect to insert here into a file in sites-enabled folder.
2. learn how to use a2ensite, a2dissite - enable or disable an apache2 site / virtual host
2.1 man has enough details on these commands. it's a breeze once you use it.
3. you need to rename mysite.settings in your conf file to whatever your project/site name is. ie if your project is called store then it will be called store.settings. this occurs with error message saying:
ImportError: Could not import settings 'myproject.settings' (Is it on sys.path? Does it have syntax errors?): No module named myproject.settings