I'm deploying a django app, but I can't seem get the settings correct in the Apache configuration. I've put my django app in /path/to/mysite.com/teabag/current/
DirectoryIndex index.html
DocumentRoot /path/to/mysite.com/teabag/current/
<Location "/">
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE settings_production
PythonPath "['/path/to/mysite.com/teabag/current'] + sys.path"
PythonDebug On
</Location>
<Location "/media/">
SetHandler None
</Location>
<LocationMatch "\.(jpg|gif|png)$">
SetHandler None
</LocationMatch>
But it's giving me this error:
ImportError: Could not import settings 'settings_production' (Is it on sys.path? Does it have syntax errors?): No module named settings_production
I had a suspicion that my python path is incorrect. Should it be one level above at /path/to/mysite.com/teabag?, and thus the setting should be "current.settings_production"
I'm a little stuck, and any help would be appreciated, thanks.