Opened 3 years ago

Last modified 16 months ago

#27925 assigned Cleanup/optimization

Document how to deploy using pip installed mod_wsgi

Reported by: Vincent Lefoulon Owned by: cleopatra douglas
Component: Documentation Version: 1.10
Severity: Normal Keywords: mod_wsgi, apache
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
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 (6)

comment:1 Changed 3 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 3 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 3 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 3 years ago by Vincent Lefoulon

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

comment:5 Changed 3 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:6 Changed 16 months ago by cleopatra douglas

Owner: changed from nobody to cleopatra douglas
Status: newassigned
Note: See TracTickets for help on using tickets.
Back to Top