diff --git a/django/views/debug.py b/django/views/debug.py index fba43912bbb..ac942f71523 100644 --- a/django/views/debug.py +++ b/django/views/debug.py @@ -142,9 +142,9 @@ def technical_500_response(request, exc_type, exc_value, tb): 'request': request, 'request_protocol': request.is_secure() and "https" or "http", 'settings': get_safe_settings(), - 'sys_executable' : sys.executable, - 'sys_version_info' : '%d.%d.%d' % sys.version_info[0:3], - 'django_version_info' : get_version(), + 'sys_executable': sys.executable, + 'sys_version_info': '%d.%d.%d' % sys.version_info[0:3], + 'django_version_info': get_version(), 'template_info': template_info, 'template_does_not_exist': template_does_not_exist, 'loader_debug_info': loader_debug_info, @@ -230,8 +230,8 @@ TECHNICAL_500_TEMPLATE = """ - - + + {{ exception_type }} at {{ request.path|escape }}