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
--
Ticket URL: <https://code.djangoproject.com/ticket/27823>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by Tim Graham):
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).
--
Ticket URL: <https://code.djangoproject.com/ticket/27823#comment:1>
* type: Bug => Cleanup/optimization
* stage: Unreviewed => Accepted
Comment:
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`
--
Ticket URL: <https://code.djangoproject.com/ticket/27823#comment:2>
Comment (by Tim Graham):
[https://github.com/django/django/pull/8048 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/27823#comment:3>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"103e6cf26c17ae650b7caa3956b87a215334d761" 103e6cf]:
{{{
#!CommitTicketReference repository=""
revision="103e6cf26c17ae650b7caa3956b87a215334d761"
Fixed #27823 -- Updated mod_wsgi example to use WSGIPythonHome.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27823#comment:4>
Comment (by Tim Graham <timograham@…>):
In [changeset:"8bf9967e7b0bdc7edc4c616a3be4027c73176513" 8bf9967]:
{{{
#!CommitTicketReference repository=""
revision="8bf9967e7b0bdc7edc4c616a3be4027c73176513"
[1.11.x] Fixed #27823 -- Updated mod_wsgi example to use WSGIPythonHome.
Backport of 103e6cf26c17ae650b7caa3956b87a215334d761 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27823#comment:5>
Comment (by Tim Graham <timograham@…>):
In [changeset:"5044d18e1fca657628a407542f9f76e00cab3262" 5044d18e]:
{{{
#!CommitTicketReference repository=""
revision="5044d18e1fca657628a407542f9f76e00cab3262"
[1.10.x] Fixed #27823 -- Updated mod_wsgi example to use WSGIPythonHome.
Backport of 103e6cf26c17ae650b7caa3956b87a215334d761 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27823#comment:6>