Opened 12 years ago
Closed 12 years ago
#19796 closed Bug (duplicate)
virtualenv and modwsgi
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Documentation | Version: | 1.4 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
In the documentation for How to use Django with Apache and mod_wsgi, the section on Using a virtualenv
indicates that "If you install your project’s Python dependencies inside a virtualenv, you’ll need to add the path to this virtualenv’s site-packages directory to your Python path as well." But the provided line is incorrect.WSGIPythonPath is cumulative and instead requires the use of a :
(on UNIX-like systems) or ;
(on Windows systems).
Thus, the line should replace the existing WSGIPythonPath
line with:
WSGIPythonPath /path/to/mysite.com:/path/to/your/venv/lib/python2.X/site-packages
Change History (3)
comment:1 by , 12 years ago
Easy pickings: | set |
---|
comment:2 by , 12 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:3 by , 12 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
This was fixed in dev and 1.5 in #19042. I will backport the relevant part of the fix to 1.4 too.