Opened 8 years ago

Closed 8 years ago

#4335 closed (fixed)

Pretty error page should display Python version

Reported by: rogerpack2005@… Owned by: adrian
Component: Core (Other) Version: master
Severity: Keywords:
Cc: pete.crosier@… Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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 (1)

sys-info-debug-500-error.patch (1.3 KB) - added by pete.crosier@… 8 years ago.
Includes the Python executable path and version in the 500 error pages whilst debugging

Download all attachments as: .zip

Change History (6)

comment:1 Changed 8 years ago by Simon G. <dev@…>

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Summary changed from request for python version on error outputs to show python version on error outputs
  • Triage Stage changed from Unreviewed to Design decision needed

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.

comment:2 Changed 8 years ago by adrian

  • Component changed from Tools to Core framework
  • Summary changed from show python version on error outputs to Pretty error page should display Python version
  • Triage 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?

Changed 8 years ago by pete.crosier@…

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

comment:3 Changed 8 years ago by anonymous

  • Cc pete.crosier@… added
  • Has patch set

comment:4 Changed 8 years ago by Simon G. <dev@…>

  • Triage Stage changed from Accepted to Ready for checkin

comment:5 Changed 8 years ago by mtredinnick

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

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

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