On Fri, Apr 4, 2008 at 7:25 AM, Simone Cittadini <[EMAIL PROTECTED]> wrote:
> > When my app throws some exception I'm no more viewing the nicely > formatted html. > Actually I'm no more viewing the trace of the exception, all I see, no > matter what the error is, is attached below: > (I haven't played with settings.py and I don't think is something in my > code, it happens with every view for every app ...) > Have you changed the system locale? From the traceback it looks like your system's default locale has been set to something that specifies an encoding of 'utf-8-euro'. This isn't recognized by Python, so Django runs into trouble trying to generate the debug page, since it tries to use this unknown encoding to format the information on the debug page. You need to set the system locale to something with an encoding that Python recognizes. Karen > > Traceback (most recent call last): > > File "/usr/lib/python2.5/site-packages/django/core/servers/basehttp.py", > line 277, in run > self.result = application(self.environ, self.start_response) > > File "/usr/lib/python2.5/site-packages/django/core/servers/basehttp.py", > line 631, in __call__ > return self.application(environ, start_response) > > File "/usr/lib/python2.5/site-packages/django/core/handlers/wsgi.py", > line 205, in __call__ > response = self.get_response(request) > > File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py", > line 120, in get_response > return debug.technical_500_response(request, *exc_info) > > File "/usr/lib/python2.5/site-packages/django/views/debug.py", line 74, > in technical_500_response > html = get_traceback_html(request, exc_type, exc_value, tb) > > File "/usr/lib/python2.5/site-packages/django/views/debug.py", line 169, > in get_traceback_html > return t.render(c) > > File "/usr/lib/python2.5/site-packages/django/template/__init__.py", line > 176, in render > return self.nodelist.render(context) > > File "/usr/lib/python2.5/site-packages/django/template/__init__.py", line > 751, in render > bits.append(self.render_node(node, context)) > > File "/usr/lib/python2.5/site-packages/django/template/debug.py", line > 81, in render_node > raise wrapped > > TemplateSyntaxError: Caught an exception while rendering: unknown > encoding: utf_8_euro > > Original Traceback (most recent call last): > File "/usr/lib/python2.5/site-packages/django/template/debug.py", line > 71, in render_node > result = node.render(context) > File "/usr/lib/python2.5/site-packages/django/template/debug.py", line > 87, in render > output = force_unicode(self.filter_expression.resolve(context)) > File "/usr/lib/python2.5/site-packages/django/template/__init__.py", line > 542, in resolve > new_obj = func(obj, *arg_vals) > File > "/usr/lib/python2.5/site-packages/django/template/defaultfilters.py", line > 627, in date > return format(value, arg) > File "/usr/lib/python2.5/site-packages/django/utils/dateformat.py", line > 263, in format > df = DateFormat(value) > File "/usr/lib/python2.5/site-packages/django/utils/dateformat.py", line > 114, in __init__ > self.timezone = LocalTimezone(dt) > File "/usr/lib/python2.5/site-packages/django/utils/tzinfo.py", line 36, > in __init__ > self._tzname = self.tzname(dt) > File "/usr/lib/python2.5/site-packages/django/utils/tzinfo.py", line 55, > in tzname > return smart_unicode(time.tzname[self._isdst(dt)], DEFAULT_ENCODING) > File "/usr/lib/python2.5/site-packages/django/utils/encoding.py", line > 37, in smart_unicode > return force_unicode(s, encoding, strings_only, errors) > File "/usr/lib/python2.5/site-packages/django/utils/encoding.py", line > 58, in force_unicode > s = s.decode(encoding, errors) > LookupError: unknown encoding: utf_8_euro > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---