Ticket #6494: 6494.diff
File 6494.diff, 1.0 KB (added by , 17 years ago) |
---|
-
django/views/debug.py
70 70 Create a technical server error response. The last three arguments are 71 71 the values returned from sys.exc_info() and friends. 72 72 """ 73 html = get_traceback_html(request, exc_type, exc_value, tb) 74 return HttpResponseServerError(html, mimetype='text/html') 75 76 def get_traceback_html(request, exc_type, exc_value, tb): 77 "Return HTML code for traceback." 73 78 template_info = None 74 79 template_does_not_exist = False 75 80 loader_debug_info = None … … 159 164 'template_does_not_exist': template_does_not_exist, 160 165 'loader_debug_info': loader_debug_info, 161 166 }) 162 return HttpResponseServerError(t.render(c), mimetype='text/html')167 return t.render(c) 163 168 164 169 def technical_404_response(request, exception): 165 170 "Create a technical 404 error response. The exception should be the Http404."