On Tue, Dec 15, 2009 at 4:09 PM, Oleg Oltar <oltarase...@gmail.com> wrote:

> Hi,
>
> I've moved my django application from one server to another, and spotted
> strange bug with media after it:
>
> Traceback (most recent call last):
>
>  File "/usr/lib/python2.5/site-
> packages/Django-1.1.1-py2.5.egg/django/core/handlers/base.py", line 92, in
> get_response
>    response = callback(request, *callback_args, **callback_kwargs)
>
>  File
> "/usr/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/views/static.py",
> line 51, in serve
>    if os.path.isdir(fullpath):
>
>  File "/usr/lib/python2.5/posixpath.py", line 195, in isdir
>    st = os.stat(path)
>
> UnicodeEncodeError: 'ascii' codec can't encode characters in position
> 44-46: ordinal not in range(128)
>
>
> The image I am trying to access actually have Cyrillic symbols in the name,
> but it didn't made a problem on previous environment
>
>
http://docs.djangoproject.com/en/dev/howto/deployment/modpython/#if-you-get-a-unicodeencodeerror

(Note the problem isn't limited to mod_python, despite that being where the
note is in the doc.  In whatever environment your new server is running,
LANG is apparently not set properly.)

Karen

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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.


Reply via email to