Steven Armstrong wrote:
> On 04/29/06 01:30, tgone wrote:
> > Hello,
> >
> > I'm getting the following error:
> >
> > ---------------------------------------------------------------
> > Mod_python error: "PythonHandler django.core.handlers.modpython"
> >
> > Traceback (most recent call last):
> >
> >   File "/usr/local/lib/python2.4/site-packages/mod_python/apache.py",
> > line 299, in HandlerDispatch
> >     result = object(req)
> >
> >   File
> > "/usr/local/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/core/handlers/modpython.py",
> > line 165, in handler
> >     return ModPythonHandler()(req)
> >
> >   File
> > "/usr/local/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/core/handlers/modpython.py",
> > line 130, in __call__
> >     from django.conf import settings
> >
> >   File
> > "/usr/local/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/conf/settings.py",
> > line 34, in ?
> >     raise EnvironmentError, "Could not import %s '%s' (is it on
> > sys.path?): %s" % (ENVIRONMENT_VARIABLE, me.SETTINGS_MODULE, e)
> >
> > EnvironmentError: Could not import DJANGO_SETTINGS_MODULE
> > 'myproject.settings' (is it on sys.path?): No module named
> > myproject.settings
> > ---------------------------------------------------------------
> >
> > Here's what's in my httpd.conf:
> >
> > ---------------------------------------------------------------
> > <Location "/myproject/">
> >     SetHandler python-program
> >     PythonHandler django.core.handlers.modpython
> >     PythonPath "['/home/webadmin/html/myproject'] + sys.path"
> >     SetEnv DJANGO_SETTINGS_MODULE myproject.settings
> >     PythonDebug On
> > </Location>
> > ---------------------------------------------------------------
> >
> > I'm not sure what to do. Do I need to add my project to the system
> > path? I thought Django was suppose to do this for me when I created the
> > project..
> >
>
> try:
>
> PythonPath "['/home/webadmin/html'] + sys.path"
> SetEnv DJANGO_SETTINGS_MODULE myproject.settings
>
> assuming that settings live in /home/webadmin/html/myproject/settings.py

thanks! that did it.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to