Opened 4 years ago

Closed 4 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 Changed 4 years ago by Titus Barik

Easy pickings: set
Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset

comment:2 Changed 4 years ago by Aymeric Augustin

Triage Stage: UnreviewedAccepted

comment:3 Changed 4 years ago by Claude Paroz

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