Changeset 8560
- Timestamp:
- 08/25/08 17:47:07 (3 months ago)
- Files:
-
- django/trunk/django/views/debug.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/views/debug.py
r8420 r8560 8 8 from django.utils.html import escape 9 9 from django.http import HttpResponse, HttpResponseServerError, HttpResponseNotFound 10 from django.utils.encoding import smart_unicode 10 from django.utils.encoding import smart_unicode, smart_str 11 11 12 12 HIDDEN_SETTINGS = re.compile('SECRET|PASSWORD|PROFANITIES_LIST') … … 257 257 'request_path': request.path[1:], # Trim leading slash 258 258 'urlpatterns': tried, 259 'reason': s tr(exception),259 'reason': smart_str(exception, errors='replace'), 260 260 'request': request, 261 261 'request_protocol': request.is_secure() and "https" or "http",
