Code

Opened 4 years ago

Closed 4 years ago

Last modified 3 years ago

#13820 closed (fixed)

Deprecate mod_python support

Reported by: rcoup 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:

Description

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.

Options:

  • 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@…> 4 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 4 years ago by rcoup

  • Needs documentation set
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

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

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

Patch to add warnings and update docs to piss on mod_python

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

  • Has patch set

Enjoy.

comment:3 Changed 4 years ago by russellm

  • Resolution set to fixed
  • Status changed from new to closed

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

comment:4 Changed 4 years ago by russellm

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 3 years ago by jacob

  • milestone 1.3 deleted

Milestone 1.3 deleted

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.