Opened 5 years ago

Last modified 4 hours ago

#27925 assigned Cleanup/optimization

Document how to deploy using pip installed mod_wsgi

Reported by: Vincent Lefoulon Owned by: Kshitij Raghav
Component: Documentation Version: 1.10
Severity: Normal Keywords: mod_wsgi, apache
Cc: Egor R Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: yes
Easy pickings: no UI/UX: no



The current documentation page about mod_wsgi ( explains how to set it up manually. Personnally, I never managed to deploy that way. Instead, I use the Python module (, with which I have no problems.

Moreover, using the Python module seems to be recommended: "The second and newest way of installing mod_wsgi is to install it as a Python package into your Python installation using the Python pip install command."

Maybe we could update the documentation.


PS: that's my first ticket, I hope I am doing it the right way.

Change History (12)

comment:1 Changed 5 years ago by Aymeric Augustin

Triage Stage: UnreviewedAccepted

Indeed, pip install mod_wsgi (a recent addition) is significantly easier than previous solutions. It also works fine with pyenv (e.g. if you want to run a not-too-old Python on Debian stable). Let's do this.

comment:2 Changed 5 years ago by Tim Graham

Summary: Update mod_wsgi deployment documentationDocument how to deploy using pip installed mod_wsgi

I'm not sure how much information we need to duplicate in Django's docs, linking to Using mod_wsgi-express with Django might be enough?

comment:3 Changed 5 years ago by Aymeric Augustin

I think our documentation should contain a minimal working example corresponding to what we consider the best practice for a trivial site and point to mod_wsgi's documentation for anything else. There's a good chance our example will match mod_wsgi's 101 for running Django.

comment:4 Changed 5 years ago by Vincent Lefoulon

Maybe the documentation could also mention the Docker image, really useful for trying and deploy:

comment:5 Changed 5 years ago by Tim Graham

I agree with Aymeric about including a minimal working example, however, I think pointing to third-party resources like the Docker image is outside the scope of our documentation -- maybe it's appropriate for mod_wsgi's docs though.

comment:7 Changed 10 months ago by David Smith

Easy pickings: set

comment:8 Changed 8 months ago by Kshitij Raghav

Owner: changed from nobody to Kshitij Raghav
Status: newassigned

Successfully Modified the documentation and added a pull request( waiting to be merged )

comment:9 Changed 8 months ago by Tim Graham

Has patch: set

Kshitij, for future reference, you should link to your PR and check "Has patch" on this ticket so the patch appears in the review queue. I will do that now.


comment:10 Changed 6 months ago by Jacob Walls

Patch needs improvement: set

comment:11 Changed 2 months ago by za

Patch needs improvement: unset

Hi Kshitij, I've wrapped the lines into 79 chars here:

comment:12 Changed 10 days ago by Egor R

Cc: Egor R added

comment:13 Changed 4 hours ago by Mariusz Felisiak

Easy pickings: unset
Patch needs improvement: set
Note: See TracTickets for help on using tickets.
Back to Top