Ticket #9577: debug_request_url.diff
File debug_request_url.diff, 1.7 KB (added by , 16 years ago) |
---|
-
django/views/debug.py
99 99 'frames': frames, 100 100 'lastframe': frames[-1], 101 101 'request': self.request, 102 'request_protocol': self.request.is_secure() and "https" or "http",103 102 'settings': get_safe_settings(), 104 103 'sys_executable': sys.executable, 105 104 'sys_version_info': '%d.%d.%d' % sys.version_info[0:3], … … 258 257 'urlpatterns': tried, 259 258 'reason': smart_str(exception, errors='replace'), 260 259 'request': request, 261 'request_protocol': request.is_secure() and "https" or "http",262 260 'settings': get_safe_settings(), 263 261 }) 264 262 return HttpResponseNotFound(t.render(c), mimetype='text/html') … … 397 395 </tr> 398 396 <tr> 399 397 <th>Request URL:</th> 400 <td>{{ request _protocol }}://{{ request.META.HTTP_HOST }}{{ request.path_info|escape }}</td>398 <td>{{ request.build_absolute_uri|escape }}</td> 401 399 </tr> 402 400 <tr> 403 401 <th>Exception Type:</th> … … 527 525 Environment: 528 526 529 527 Request Method: {{ request.META.REQUEST_METHOD }} 530 Request URL: {{ request _protocol }}://{{ request.META.HTTP_HOST }}{{ request.path_info|escape }}528 Request URL: {{ request.build_absolute_uri|escape }} 531 529 Django Version: {{ django_version_info }} 532 530 Python Version: {{ sys_version_info }} 533 531 Installed Applications: … … 717 715 </tr> 718 716 <tr> 719 717 <th>Request URL:</th> 720 <td>{{ request _protocol }}://{{ request.META.HTTP_HOST }}{{ request.path_info|escape }}</td>718 <td>{{ request.build_absolute_uri|escape }}</td> 721 719 </tr> 722 720 </table> 723 721 </div>