Hello,

Recieving a common error, but have trolled the message boards, and
have not found a solution. My httpd.conf file contains the following
relevant snippet:

<Location "/mysite/">
    SetHandler python-program
    PythonPath "['/home/benrawk'] + sys.path"
    SetEnv DJANGO_SETTINGS_MODULE mysite.settings
    PythonHandler django.core.handlers.modpython
    PythonDebug On
    Allow from localhost
</Location>

The path of my project file with settings.py in it is /home/benrawk/
mysite.

The error I am recieving when accesing http://localhost/mysite/
follows, any ideas about what is going on would be greatly
appreciated!

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-0.95.1-py2.4.egg/
django/core/handlers/modpython.py", line 163, in handler
    return ModPythonHandler()(req)

  File "/usr/lib/python2.4/site-packages/Django-0.95.1-py2.4.egg/
django/core/handlers/modpython.py", line 125, in __call__
    if settings.ENABLE_PSYCO:

  File "/usr/lib/python2.4/site-packages/Django-0.95.1-py2.4.egg/
django/conf/__init__.py", line 27, in __getattr__
    self._import_settings()

  File "/usr/lib/python2.4/site-packages/Django-0.95.1-py2.4.egg/
django/conf/__init__.py", line 54, in _import_settings
    self._target = Settings(settings_module)

  File "/usr/lib/python2.4/site-packages/Django-0.95.1-py2.4.egg/
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


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to