I am trying to setup my django site using mod_python and apache. My Django project is called "autosales" and it works just fine when accessing it from the development web server. However, when I try to access it from apache, I get the following error
EnvironmentError: Could not import settings 'autosales.settings' (Is it on sys.path? Does it have syntax errors?): No module named autosales.settings Here is my apache virtual host entry: <VirtualHost *:80> ServerAdmin [EMAIL PROTECTED] ServerName autoapp.somedomain.com SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE autosales.settings PythonDebug On </VirtualHost> I am not sure what to do. I also tried adding PythonPath "['/path/to/project'] + sys.path" in my virtual host entry like so: <VirtualHost *:80> ServerAdmin [EMAIL PROTECTED] ServerName autoapp.somedomain.com SetHandler python-program PythonHandler django.core.handlers.modpython PythonPath "['/path/to/project'] + sys.path" SetEnv DJANGO_SETTINGS_MODULE autosales.settings PythonDebug On </VirtualHost> But I still get the same message. Keep in mind that I am restarting apache every time I make a change. Any ideas? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---