#27823 closed Cleanup/optimization (fixed)
Use python-home in WSGI daemon installation documentation
Reported by: | Avi | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.10 |
Severity: | Normal | Keywords: | wsgi installation apache |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Here: https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/modwsgi/#using-mod-wsgi-daemon-mode
The example should be:
WSGIDaemonProcess example.com python-home=/path/to/venv/lib/python2.7/site-packages python-path=/path/to/mysite.com WSGIProcessGroup example.com
And... it can be also python3.5
Change History (6)
comment:1 by , 8 years ago
comment:2 by , 8 years ago
Summary: | WSGI daemon installation documentation → Use python-home in WSGI daemon installation documentation |
---|---|
Triage Stage: | Unreviewed → Accepted |
Type: | Bug → Cleanup/optimization |
The python-home
directive was added in http://modwsgi.readthedocs.io/en/develop/release-notes/version-3.4.html (August 2012).
Quoting the modwsgi docs for the python-path
directive:
If using a Python virtual environment, rather than use this option to refer to the site-packages directory of the Python virtual environment, you should use the python-home option to specify the root of the Python virtual environment instead.
So the correct line should be:
WSGIDaemonProcess example.com python-home=/path/to/venv python-path=/path/to/mysite.com
Could you explain why the change is needed? Is this dependent on the mod_wsgi version or something? I'm just skeptical the documentation has been incorrect since it was added in 2011 (145a77edc999fd5f1a53bc5bfd6b581386950074).