Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#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 Tim Graham, 8 years ago

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).

comment:2 by Claude Paroz, 8 years ago

Summary: WSGI daemon installation documentationUse python-home in WSGI daemon installation documentation
Triage Stage: UnreviewedAccepted
Type: BugCleanup/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

comment:3 by Tim Graham, 8 years ago

comment:4 by GitHub <noreply@…>, 8 years ago

Resolution: fixed
Status: newclosed

In 103e6cf:

Fixed #27823 -- Updated mod_wsgi example to use WSGIPythonHome.

comment:5 by Tim Graham <timograham@…>, 8 years ago

In 8bf9967:

[1.11.x] Fixed #27823 -- Updated mod_wsgi example to use WSGIPythonHome.

Backport of 103e6cf26c17ae650b7caa3956b87a215334d761 from master

comment:6 by Tim Graham <timograham@…>, 8 years ago

In 5044d18e:

[1.10.x] Fixed #27823 -- Updated mod_wsgi example to use WSGIPythonHome.

Backport of 103e6cf26c17ae650b7caa3956b87a215334d761 from master

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