Opened 9 years ago

Closed 9 years ago

#4110 closed (duplicate)

import settings.py errors

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

Description

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"
</Location>

I need

Change History (1)

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

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
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