Changeset 8633
- Timestamp:
- 08/27/08 14:59:29 (3 months ago)
- Files:
-
- django/trunk/django/views/debug.py (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/views/debug.py
r8560 r8633 255 255 c = Context({ 256 256 'root_urlconf': settings.ROOT_URLCONF, 257 'request_path': request.path [1:], # Trim leading slash257 'request_path': request.path_info[1:], # Trim leading slash 258 258 'urlpatterns': tried, 259 259 'reason': smart_str(exception, errors='replace'), … … 283 283 <meta http-equiv="content-type" content="text/html; charset=utf-8"> 284 284 <meta name="robots" content="NONE,NOARCHIVE"> 285 <title>{{ exception_type }} at {{ request.path |escape }}</title>285 <title>{{ exception_type }} at {{ request.path_info|escape }}</title> 286 286 <style type="text/css"> 287 287 html * { padding:0; margin:0; } … … 389 389 <body> 390 390 <div id="summary"> 391 <h1>{{ exception_type }} at {{ request.path |escape }}</h1>391 <h1>{{ exception_type }} at {{ request.path_info|escape }}</h1> 392 392 <pre class="exception_value">{{ exception_value|escape }}</pre> 393 393 <table class="meta"> … … 398 398 <tr> 399 399 <th>Request URL:</th> 400 <td>{{ request_protocol }}://{{ request.META.HTTP_HOST }}{{ request.path |escape }}</td>400 <td>{{ request_protocol }}://{{ request.META.HTTP_HOST }}{{ request.path_info|escape }}</td> 401 401 </tr> 402 402 <tr> … … 521 521 <div id="pastebinTraceback" class="pastebin"> 522 522 <input type="hidden" name="language" value="PythonConsole"> 523 <input type="hidden" name="title" value="{{ exception_type|escape }} at {{ request.path |escape }}">523 <input type="hidden" name="title" value="{{ exception_type|escape }} at {{ request.path_info|escape }}"> 524 524 <input type="hidden" name="source" value="Django Dpaste Agent"> 525 525 <input type="hidden" name="poster" value="Django"> … … 528 528 529 529 Request Method: {{ request.META.REQUEST_METHOD }} 530 Request URL: {{ request_protocol }}://{{ request.META.HTTP_HOST }}{{ request.path |escape }}530 Request URL: {{ request_protocol }}://{{ request.META.HTTP_HOST }}{{ request.path_info|escape }} 531 531 Django Version: {{ django_version_info }} 532 532 Python Version: {{ sys_version_info }} … … 555 555 {% if frame.context_line %} {{ frame.lineno }}. {{ frame.context_line|escape }}{% endif %} 556 556 {% endfor %} 557 Exception Type: {{ exception_type|escape }} at {{ request.path |escape }}557 Exception Type: {{ exception_type|escape }} at {{ request.path_info|escape }} 558 558 Exception Value: {{ exception_value|escape }} 559 559 </textarea> … … 688 688 <head> 689 689 <meta http-equiv="content-type" content="text/html; charset=utf-8"> 690 <title>Page not found at {{ request.path |escape }}</title>690 <title>Page not found at {{ request.path_info|escape }}</title> 691 691 <meta name="robots" content="NONE,NOARCHIVE"> 692 692 <style type="text/css"> … … 718 718 <tr> 719 719 <th>Request URL:</th> 720 <td>{{ request_protocol }}://{{ request.META.HTTP_HOST }}{{ request.path |escape }}</td>720 <td>{{ request_protocol }}://{{ request.META.HTTP_HOST }}{{ request.path_info|escape }}</td> 721 721 </tr> 722 722 </table>
