Opened 14 years ago

Closed 14 years ago

#4110 closed (duplicate)

import errors

Reported by: stanislas.guerra@… Owned by: Jacob
Component: Documentation Version: dev
Severity: Keywords: mod_python pythonpath
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Using apache 2.2.x with mod_python 3.3.1, I was unable to get my project running with the configuration tips provided concerning the PYTHONPATH.

Instead of

PythonPath "['/path/to/project'] + sys.path"

I have to use :

PythonPath "['/path/to/project'] + sys.path"
PythonPath "['/path/to'] + sys.path"

My example of httpd.conf

<Location "/myproject/">
        SetHandler mod_python
        PythonHandler django.core.handlers.modpython
        SetEnv DJANGO_SETTINGS_MODULE myproject.settings
        PythonDebug On
        PythonPath "['/var/www/localhost/htdocs/myproject'] + sys.path"
        PythonPath "['/var/www/localhost/htdocs'] + sys.path"

I need

Change History (1)

comment:1 Changed 14 years ago by Simon G. <dev@…>

Resolution: duplicate
Status: newclosed
Version: 0.96SVN

Yes, we should clarify this (c.f. #3842). If you're still having issues with this, please drop by the django-users mailing list and ask there.

Note: See TracTickets for help on using tickets.
Back to Top