[Django] #27823: WSGI daemon installation documentation

6 views
Skip to first unread message

Django

unread,
Feb 8, 2017, 10:23:21 AM2/8/17
to django-...@googlegroups.com
#27823: WSGI daemon installation documentation
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
aviavigayl |
Type: Bug | Status: new
Component: | Version: 1.10
Documentation | Keywords: wsgi installation
Severity: Normal | apache
Triage Stage: | Has patch: 1
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
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

--
Ticket URL: <https://code.djangoproject.com/ticket/27823>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Feb 8, 2017, 10:40:33 AM2/8/17
to django-...@googlegroups.com
#27823: WSGI daemon installation documentation
-------------------------------------+-------------------------------------
Reporter: Avi | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 1.10
Severity: Normal | Resolution:
Keywords: wsgi installation | Triage Stage:
apache | Unreviewed
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

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>

Django

unread,
Feb 8, 2017, 2:46:04 PM2/8/17
to django-...@googlegroups.com
#27823: Use python-home in WSGI daemon installation documentation
-------------------------------------+-------------------------------------
Reporter: Avi | Owner: nobody
Type: | Status: new
Cleanup/optimization |

Component: Documentation | Version: 1.10
Severity: Normal | Resolution:
Keywords: wsgi installation | Triage Stage: Accepted
apache |
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Claude Paroz):

* 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>

Django

unread,
Feb 10, 2017, 7:21:30 PM2/10/17
to django-...@googlegroups.com
#27823: Use python-home in WSGI daemon installation documentation
-------------------------------------+-------------------------------------

Reporter: Avi | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: Documentation | Version: 1.10
Severity: Normal | Resolution:
Keywords: wsgi installation | Triage Stage: Accepted
apache |
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Tim Graham):

[https://github.com/django/django/pull/8048 PR]

--
Ticket URL: <https://code.djangoproject.com/ticket/27823#comment:3>

Django

unread,
Feb 13, 2017, 7:52:16 PM2/13/17
to django-...@googlegroups.com
#27823: Use python-home in WSGI daemon installation documentation
-------------------------------------+-------------------------------------
Reporter: Avi | Owner: nobody
Type: | Status: closed

Cleanup/optimization |
Component: Documentation | Version: 1.10
Severity: Normal | Resolution: fixed

Keywords: wsgi installation | Triage Stage: Accepted
apache |
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by GitHub <noreply@…>):

* 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>

Django

unread,
Feb 13, 2017, 7:52:44 PM2/13/17
to django-...@googlegroups.com
#27823: Use python-home in WSGI daemon installation documentation
-------------------------------------+-------------------------------------

Reporter: Avi | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: Documentation | Version: 1.10
Severity: Normal | Resolution: fixed
Keywords: wsgi installation | Triage Stage: Accepted
apache |
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

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>

Django

unread,
Feb 13, 2017, 7:52:49 PM2/13/17
to django-...@googlegroups.com
#27823: Use python-home in WSGI daemon installation documentation
-------------------------------------+-------------------------------------

Reporter: Avi | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: Documentation | Version: 1.10
Severity: Normal | Resolution: fixed
Keywords: wsgi installation | Triage Stage: Accepted
apache |
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

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>

Reply all
Reply to author
Forward
0 new messages