Opened 3 years ago

Closed 3 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 3 years ago by barik

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

comment:2 Changed 3 years ago by aaugustin

  • Triage Stage changed from Unreviewed to Accepted

comment:3 Changed 3 years ago by claudep

  • Resolution set to duplicate
  • Status changed from new to closed

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