Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #6158 -- Display PYTHONPATH on the debug error page. Thanks, an…

…nacoder.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6908 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit c39d6e89f1c87a14b77fe29fda06fff74b249b3e 1 parent 8540731
Gary Wilson Jr. gdub authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 django/views/debug.py
5 django/views/debug.py
View
@@ -145,6 +145,7 @@ def technical_500_response(request, exc_type, exc_value, tb):
'sys_executable': sys.executable,
'sys_version_info': '%d.%d.%d' % sys.version_info[0:3],
'django_version_info': get_version(),
+ 'sys_path' : sys.path,
'template_info': template_info,
'template_does_not_exist': template_does_not_exist,
'loader_debug_info': loader_debug_info,
@@ -368,6 +369,10 @@ def _get_lines_from_file(filename, lineno, context_lines, loader=None, module_na
<th>Python Version:</th>
<td>{{ sys_version_info }}</td>
</tr>
+ <tr>
+ <th>Python Path:</th>
+ <td>{{ sys_path }}</td>
+ </tr>
</table>
</div>
{% if unicode_hint %}
Please sign in to comment.
Something went wrong with that request. Please try again.