Ticket #6353: 6353.diff
File 6353.diff, 1.1 KB (added by , 17 years ago) |
---|
-
django/views/debug.py
184 184 'root_urlconf': settings.ROOT_URLCONF, 185 185 'request_path': request.path[1:], # Trim leading slash 186 186 'urlpatterns': tried, 187 'reason': s tr(exception),187 'reason': smart_unicode(exception, errors='replace'), 188 188 'request': request, 189 189 'request_protocol': request.is_secure() and "https" or "http", 190 190 'settings': get_safe_settings(), -
django/utils/encoding.py
49 49 if not isinstance(s, basestring,): 50 50 if hasattr(s, '__unicode__'): 51 51 s = unicode(s) 52 elif isinstance(s, Exception): 53 s = ' '.join([force_unicode(arg, encoding, strings_only, errors) for arg in s.args]) 52 54 else: 53 55 s = unicode(str(s), encoding, errors) 54 56 elif not isinstance(s, unicode):