Hello,

I've recently started to learn Django.  I'm having a problem setting it
up with apache2 and mod_python on Ubuntu 5.10.

These are my mod_python settings in apache

"""

<Location "/resumekeeper/">
    SetHandler mod_python
    PythonPath "['/home/rousseau/code/django'] + sys.path"
    PythonHandler django.core.handlers.modpython
    SetEnv DJANGO_SETTINGS_MODULE resumekeeper.settings
    PythonDebug On
</Location>

"""

So when I go to localhost/resumekeeper/, this is the error I get is

"""

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

  File
"/usr/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/core/handlers/modpython.py",
line 135, in __call__
    self.load_middleware()

  File
"/usr/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/core/handlers/base.py",
line 28, in load_middleware
    raise exceptions.ImproperlyConfigured, 'Error importing middleware
%s: "%s"' % (mw_module, e)

ImproperlyConfigured: Error importing middleware
django.middleware.sessions: "No module named resumes"

"""

Any ideas on what I'm doing wrong?

Thanks,

Ryan Rousseau

Reply via email to