Opened 9 months ago

Last modified 9 months ago

#27925 new Cleanup/optimization

Document how to deploy using pip installed mod_wsgi

Reported by: Vincent Lefoulon Owned by: nobody
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

Description

Hi!

The current documentation page about mod_wsgi (https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/modwsgi/) explains how to set it up manually. Personnally, I never managed to deploy that way. Instead, I use the Python module (https://github.com/GrahamDumpleton/mod_wsgi#installation-into-python), 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.

Thanks.

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

Change History (5)

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

Maybe the documentation could also mention the Docker image, really useful for trying and deploy: https://hub.docker.com/r/grahamdumpleton/mod-wsgi-docker/

comment:5 Changed 9 months 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.

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