I am having a problem getting Django to work properly on my server. I
have Apache setup with mod_python using Python 2.4. I put in the
Location stuff in my Apache config, and when I go to the directory I
get this:
---------------------------------------------------
Mod_python error: "PythonHandler django.core.handlers.modpython"
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line
299, in HandlerDispatch
result = object(req)
File
"/usr/lib/python2.4/site-packages/django/core/handlers/modpython.py",
line 163, in handler
return ModPythonHandler()(req)
File
"/usr/lib/python2.4/site-packages/django/core/handlers/modpython.py",
line 125, in __call__
if settings.ENABLE_PSYCO:
File "/usr/lib/python2.4/site-packages/django/conf/__init__.py", line
27, in __getattr__
self._import_settings()
File "/usr/lib/python2.4/site-packages/django/conf/__init__.py", line
54, in _import_settings
self._target = Settings(settings_module)
File "/usr/lib/python2.4/site-packages/django/conf/__init__.py", line
82, in __init__
raise EnvironmentError, "Could not import settings '%s' (Is it on
sys.path? Does it have syntax errors?): %s" % (self.SETTINGS_MODULE, e)
EnvironmentError: Could not import settings '<mysite>.settings' (Is it
on sys.path? Does it have syntax errors?): No module named
<mysite>.settings
---------------------------------------------------
I tried adding the PythonPath line because I figured it was a problem
with my sys.path (well duh the error suggests it), but that didn't
change anything. I also made sure to give chown to the same user/group
that all the web files are, just in case Apache couldn't read the
django directories or something. Thoughts?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---