Hello all,
I keep getting a very strange error in my latest Django project. It
repeatedly sends back a ValueError saying 'Empty module name', but in
the debug output all of the settings from the settings files are
displayed correctly and the settings file that's listed is the correct
one.
The only thing I can think of is, something isn't right with how
mod_python is accessing the project. There are two locations in my
httpd.conf file for this project:
<Location "/">
SetHandler python-program
PythonInterpreter main_site
PythonHandler django.core.handlers.modpython
PythonPath "['/home/cory/projects'] + sys.path"
SetEnv DJANGO_SETTINGS_MODULE main_project.settings
PythonDebug On
PythonAutoReload On
</Location>
<Location "/demo/">
SetHandler python-program
PythonInterpreter demo_site
PythonHandler django.core.handlers.modpython
PythonPath "['/home/cory/projects'] + sys.path"
SetEnv DJANGO_SETTINGS_MODULE main_project.demo.settings
PythonDebug On
PythonAutoReload On
</Location>
Because this project entails allowing people to set up their own site
running the Django code of the project, then hosting that site, it's
imperative that the 'demo' be able to separate from the main project.
I've also tried separating them by using VirtualHosts, and have gotten
the same result.
Does anyone have any suggestions?
Thanks.
cory
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---