Re: UnicodeDecodeError with non ascii app_label

2012-08-15 Thread vitalije

Just in case someone else run in the same problem, I have found a solution. 
It is explained here: https://code.djangoproject.com/ticket/17566

HTH 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/-/YyZuhMPJcNIJ.
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.



Re: UnicodeDecodeError with non ascii app_label

2012-08-13 Thread vitalije
I have found ticket that was closed because more information was needed but 
not provided. It seems that it is related to my question. So I reopened 
ticket and pasted log information from the above message. If anyone would 
like to see it, here is the link:

https://code.djangoproject.com/ticket/17566

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/-/YoiAPVK_7ZoJ.
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.



Re: UnicodeDecodeError with non ascii app_label

2012-08-10 Thread vitalije


On Friday, August 10, 2012 4:30:19 PM UTC+2, Mengu wrote:
>
> do you have "# -*- coding: utf-8 -*-" at the top of your file?
>
>
Yes I have. If I had not that line, python2.7 would not accept file with 
non ascii characters in it. It appears that everything is working fine 
except when django tries to report error that requested url did not match 
any of given patterns. See log from console in previous message.
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/-/7nTPDTlJ5akJ.
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.



UnicodeDecodeError with non ascii app_label

2012-08-10 Thread vitalije
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.