diff --git a/django/views/debug.py b/django/views/debug.py
index 6312d01..e4e23f2 100644
|
a
|
b
|
|
| | 1 | import datetime |
| 1 | 2 | import os |
| 2 | 3 | import re |
| 3 | 4 | import sys |
| 4 | | import datetime |
| 5 | 5 | |
| 6 | 6 | from django.conf import settings |
| 7 | | from django.template import Template, Context, TemplateDoesNotExist |
| | 7 | from django.http import HttpResponse, HttpResponseServerError, HttpResponseNotFound |
| | 8 | from django.template import (Template, Context, TemplateDoesNotExist, |
| | 9 | TemplateSyntaxError) |
| 8 | 10 | from django.utils.html import escape |
| 9 | 11 | from django.utils.importlib import import_module |
| 10 | | from django.http import HttpResponse, HttpResponseServerError, HttpResponseNotFound |
| 11 | 12 | from django.utils.encoding import smart_unicode, smart_str |
| 12 | 13 | |
| | 14 | |
| 13 | 15 | HIDDEN_SETTINGS = re.compile('SECRET|PASSWORD|PROFANITIES_LIST') |
| 14 | 16 | |
| 15 | 17 | def linebreak_iter(template_source): |
| … |
… |
class ExceptionReporter:
|
| 100 | 102 | 'loader': loader_name, |
| 101 | 103 | 'templates': template_list, |
| 102 | 104 | }) |
| 103 | | if settings.TEMPLATE_DEBUG and hasattr(self.exc_value, 'source'): |
| | 105 | if (settings.TEMPLATE_DEBUG and hasattr(self.exc_value, 'source') and |
| | 106 | isinstance(self.exc_value, TemplateSyntaxError)): |
| 104 | 107 | self.get_template_exception_info() |
| 105 | 108 | |
| 106 | 109 | frames = self.get_traceback_frames() |