1
0
mirror of https://github.com/django/django.git synced 2025-07-04 17:59:13 +00:00

unicode: Fixed two bozo errors in [5315]. Even tested it this time.

git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5316 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2007-05-22 08:28:06 +00:00
parent 1c56e2d6d3
commit 0fc057c486

View File

@ -2,6 +2,7 @@ from django.conf import settings
from django.template import Template, Context, TemplateDoesNotExist from django.template import Template, Context, TemplateDoesNotExist
from django.utils.html import escape from django.utils.html import escape
from django.http import HttpResponseServerError, HttpResponseNotFound from django.http import HttpResponseServerError, HttpResponseNotFound
from django.utils.encoding import smart_unicode
import os, re import os, re
HIDDEN_SETTINGS = re.compile('SECRET|PASSWORD|PROFANITIES_LIST') HIDDEN_SETTINGS = re.compile('SECRET|PASSWORD|PROFANITIES_LIST')
@ -125,7 +126,7 @@ def technical_500_response(request, exc_type, exc_value, tb):
t = Template(TECHNICAL_500_TEMPLATE, name='Technical 500 template') t = Template(TECHNICAL_500_TEMPLATE, name='Technical 500 template')
c = Context({ c = Context({
'exception_type': exc_type.__name__, 'exception_type': exc_type.__name__,
'exception_value': smart_unicode(exc_value, errors='replace') 'exception_value': smart_unicode(exc_value, errors='replace'),
'frames': frames, 'frames': frames,
'lastframe': frames[-1], 'lastframe': frames[-1],
'request': request, 'request': request,