Hello,
I have recently updated my django installation to version 1.4.
When I try to get an url that doesn't have a match in urlpatterns,
django-server replies with 500 server error and doesn't show usual error page
when DEBUG is on but in console shows an exception UnicodeDecodeError. Here is
log
Django version 1.4, using settings 'eprod.settings'
Development server is running at http://192.168.1.195:8100/
Quit the server with CONTROL-C.
Traceback (most recent call last):
File "/usr/lib/python2.7/wsgiref/handlers.py", line 85, in run
self.result = application(self.environ, self.start_response)
File
"/usr/local/lib/python2.7/dist-packages/django/contrib/staticfiles/handlers.py",
line 67, in __call__
return self.application(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py",
line 241, in __call__
response = self.get_response(request)
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py",
line 146, in get_response
response = debug.technical_404_response(request, e)
File "/usr/local/lib/python2.7/dist-packages/django/views/debug.py", line
432, in technical_404_response
'reason': smart_str(exception, errors='replace'),
File "/usr/local/lib/python2.7/dist-packages/django/utils/encoding.py", line
116, in smart_str
return str(s)
File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py",
line 235, in __repr__
return smart_str(u'<%s %s (%s:%s) %s>' % (self.__class__.__name__,
self.urlconf_name, self.app_name, self.namespace, self.regex.pattern))
File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py",
line 235, in __repr__
return smart_str(u'<%s %s (%s:%s) %s>' % (self.__class__.__name__,
self.urlconf_name, self.app_name, self.namespace, self.regex.pattern))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 18:
ordinal not in range(128)
I suppose that problem is app_label which is set to value u'Продавница'. I know
that I could use an ascii app_name, but I want django to show in admin pages
app_name like above. Does anybody knows how to solve this?
Thanks
Vitalije
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/v3Xon9jKbZ0J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.