Django

Code

Changeset 5456

Show
Ignore:
Timestamp:
06/09/07 23:02:29 (2 years ago)
Author:
mtredinnick
Message:

Fixed #4335 -- Added Python executable binary path and version to debug output.
Thanks, Pete Crosier.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/AUTHORS

    r5455 r5456  
    7474    Ian Clelland <clelland@gmail.com> 
    7575    crankycoder@gmail.com 
     76    Pete Crosier <pete.crosier@gmail.com> 
    7677    Matt Croydon <http://www.postneo.com/> 
    7778    flavio.curella@gmail.com 
  • django/trunk/django/views/debug.py

    r5051 r5456  
    33from django.utils.html import escape 
    44from django.http import HttpResponseServerError, HttpResponseNotFound 
    5 import os, re 
     5import os, re, sys 
    66 
    77HIDDEN_SETTINGS = re.compile('SECRET|PASSWORD|PROFANITIES_LIST') 
     
    132132        'request_protocol': request.is_secure() and "https" or "http", 
    133133        'settings': get_safe_settings(), 
     134        'sys_executable' : sys.executable, 
     135        'sys_version_info' : '%d.%d.%d' % sys.version_info[0:3], 
    134136        'template_info': template_info, 
    135137        'template_does_not_exist': template_does_not_exist, 
     
    335337      <td>{{ lastframe.filename|escape }} in {{ lastframe.function|escape }}, line {{ lastframe.lineno }}</td> 
    336338    </tr> 
     339    <tr> 
     340      <th>Python Executable:</th> 
     341      <td>{{ sys_executable|escape }}</td> 
     342    </tr> 
     343    <tr> 
     344      <th>Python Version:</th> 
     345      <td>{{ sys_version_info }}</td> 
     346    </tr> 
    337347  </table> 
    338348</div>