From 887f778794d23968b9060e35d11065577e12cebe Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Wed, 27 Aug 2008 19:59:29 +0000 Subject: [PATCH] Fixed #8287: the debug page now shows the actual requested URL even if you've messed with request.path. Patch from Giuliani Vito Ivan. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8633 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/views/debug.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/django/views/debug.py b/django/views/debug.py index 0370204764..d1e9259243 100644 --- a/django/views/debug.py +++ b/django/views/debug.py @@ -254,7 +254,7 @@ def technical_404_response(request, exception): t = Template(TECHNICAL_404_TEMPLATE, name='Technical 404 template') c = Context({ 'root_urlconf': settings.ROOT_URLCONF, - 'request_path': request.path[1:], # Trim leading slash + 'request_path': request.path_info[1:], # Trim leading slash 'urlpatterns': tried, 'reason': smart_str(exception, errors='replace'), 'request': request, @@ -282,7 +282,7 @@ TECHNICAL_500_TEMPLATE = """ - {{ exception_type }} at {{ request.path|escape }} + {{ exception_type }} at {{ request.path_info|escape }}