Opened 19 years ago
Closed 19 years ago
#4110 closed (duplicate)
import settings.py errors
| Reported by: | 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 |
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 by , 19 years ago
| Resolution: | → duplicate |
|---|---|
| Status: | new → closed |
| Version: | 0.96 → SVN |
Note:
See TracTickets
for help on using tickets.
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.