Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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. authored December 11, 2007

Showing 1 changed file with 5 additions and 0 deletions. Show diff stats Hide diff stats

  1. 5  django/views/debug.py
5  django/views/debug.py
@@ -145,6 +145,7 @@ def technical_500_response(request, exc_type, exc_value, tb):
145 145
         'sys_executable': sys.executable,
146 146
         'sys_version_info': '%d.%d.%d' % sys.version_info[0:3],
147 147
         'django_version_info': get_version(),
  148
+        'sys_path' : sys.path,
148 149
         'template_info': template_info,
149 150
         'template_does_not_exist': template_does_not_exist,
150 151
         'loader_debug_info': loader_debug_info,
@@ -368,6 +369,10 @@ def _get_lines_from_file(filename, lineno, context_lines, loader=None, module_na
368 369
       <th>Python Version:</th>
369 370
       <td>{{ sys_version_info }}</td>
370 371
     </tr>
  372
+    <tr>
  373
+      <th>Python Path:</th>
  374
+      <td>{{ sys_path }}</td>
  375
+    </tr>
371 376
   </table>
372 377
 </div>
373 378
 {% if unicode_hint %}

0 notes on commit c39d6e8

Please sign in to comment.
Something went wrong with that request. Please try again.