Django

Code

Ticket #4335 (closed: fixed)

Opened 2 years ago

Last modified 1 year ago

Pretty error page should display Python version

Reported by: rogerpack2005@gmail.com Assigned to: adrian
Milestone: Component: Core framework
Version: SVN Keywords:
Cc: pete.crosier@gmail.com Triage Stage: Ready for checkin
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

It would be nice in certain instances (such as a shared host) to be able to 1) see what version of python ran your code and/or (if possible) 2) where that python binary is located. Just a thought as not all error traces show such, though some do. Thank you!

Attachments

sys-info-debug-500-error.patch (1.3 kB) - added by pete.crosier@gmail.com on 06/02/07 15:20:33.
Includes the Python executable path and version in the 500 error pages whilst debugging

Change History

05/26/07 08:39:01 changed by Simon G. <dev@simon.net.nz>

  • needs_better_patch changed.
  • stage changed from Unreviewed to Design decision needed.
  • summary changed from request for python version on error outputs to show python version on error outputs.
  • needs_tests changed.
  • needs_docs changed.

I've got Django running on a shared host, where python 2.3 is the default (Debian Sarge) and I have to explicitly set it to use 2.4 with a shebang line. Showing the python version would be handy here.

Showing version numbers is generally a bad idea as it provides lots of hackable info, but this is a debug page, and it does show lots of other info.

06/01/07 14:41:58 changed by adrian

  • summary changed from show python version on error outputs to Pretty error page should display Python version.
  • component changed from Tools to Core framework.
  • stage changed from Design decision needed to Accepted.

You mean Django's "pretty HTML error page," right? If so, I'm +1 for this. Could you write up a patch?

06/02/07 15:20:33 changed by pete.crosier@gmail.com

  • attachment sys-info-debug-500-error.patch added.

Includes the Python executable path and version in the 500 error pages whilst debugging

06/02/07 15:21:23 changed by anonymous

  • cc set to pete.crosier@gmail.com.
  • has_patch set to 1.

06/02/07 17:47:48 changed by Simon G. <dev@simon.net.nz>

  • stage changed from Accepted to Ready for checkin.

06/09/07 23:02:29 changed by mtredinnick

  • status changed from new to closed.
  • resolution set to fixed.

(In [5456]) Fixed #4335 -- Added Python executable binary path and version to debug output. Thanks, Pete Crosier.


Add/Change #4335 (Pretty error page should display Python version)




Change Properties
Action