Opened 11 years ago

Closed 11 years ago

#19796 closed Bug (duplicate)

virtualenv and modwsgi

Reported by: titus@… 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 Titus Barik, 11 years ago

Easy pickings: set

comment:2 by Aymeric Augustin, 11 years ago

Triage Stage: UnreviewedAccepted

comment:3 by Claude Paroz, 11 years ago

Resolution: duplicate
Status: newclosed

This was fixed in dev and 1.5 in #19042. I will backport the relevant part of the fix to 1.4 too.

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