Opened 6 years ago

Closed 6 years ago

Last modified 5 years ago

#13820 closed (fixed)

Deprecate mod_python support

Reported by: Robert Coup Owned by: nobody
Component: HTTP handling Version: master
Severity: Keywords: mod_python, mod_wsgi, wsgi, apache
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: yes
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


As proposed & discussed in the 1.3 Start deprecating mod_python? thread on Django-Developers, here's the ticket.

For the rationale, see the mailing list thread.

Things to do:

  • Make use of mod_python raise a PendingDeprecationWarning
  • Add "don't use this" messages to the deployment docs, and remove altogether from the install/etc documentation
  • Update wiki pages to steer people away from mod_python
  • Add to the Deprecation timeline and release notes

Hotshot Profiler

From Russell in the same mailing-list thread:

The only catch I can think of that hasn't been raised is the hotshot profiling handler; it's currently dependent on the modpython handler. I don't think there's a whole lot of extra work required to port it over, but it's worth putting on the todo list so it isn't forgotten.

Graham D also posted a wsgi equivalent piece of code.


  • port to WSGIHandler
  • move the wsgi-equivalent code to the docs, or the wiki, or django-snippets; and remove from the codebase altogether when removing mod_python

Attachments (1)

django-13820.diff (17.3 KB) - added by Joshua Ginsberg <jag@…> 6 years ago.
Patch to add warnings and update docs to piss on mod_python

Download all attachments as: .zip

Change History (6)

comment:1 Changed 6 years ago by Robert Coup

Needs documentation: set
Needs tests: unset
Patch needs improvement: unset
Triage Stage: UnreviewedAccepted

Moving to Accepted based on +1's from Jacob & Russell in the django-developers thread

Changed 6 years ago by Joshua Ginsberg <jag@…>

Attachment: django-13820.diff added

Patch to add warnings and update docs to piss on mod_python

comment:2 Changed 6 years ago by Joshua Ginsberg <jag@…>

Has patch: set


comment:3 Changed 6 years ago by Russell Keith-Magee

Resolution: fixed
Status: newclosed

(In [13648]) Fixed #13820 -- Started the deprecation process for mod_python. Thanks to Robert Coup for the patch.

comment:4 Changed 6 years ago by Russell Keith-Magee

GAH! My apologies - the patch credit goes to Joshua Gisberg, not Robert. Thanks to Robert for the report, and Joshua for the patch.

comment:5 Changed 5 years ago by Jacob

milestone: 1.3

Milestone 1.3 deleted

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