django error loading of image with non ascii character -


i getting following error when trying visit website image name contains non ascii character: ioerror @ /obiekty/ [errno 2] no such file or directory: u'/home/darnok/fitspace/media/obiekty/orlik_sp_4_zamo\u015b\u0107.png'

funny thing on localhost when using django development server worked fine. tried both development server on vps gunicorn, same in both cases. dont know if related use app image-kit handling images resizes. tried clear cache browser, nothing changes.

issue related settings:

media_root = os.path.join(base_dir, "media") media_url = '/media/' static_url = '/static/' staticfiles_dirs = (os.path.join(base_dir, "static"),) 

model field:

zdjecie = models.imagefield('zdjęcie', upload_to='obiekty') zdjecie_thumb = imagespecfield(source='zdjecie', processors=[resizetofill(133, 100)], format='jpeg', options={'quality': 100}) 

template line causing issue:

<a href="{{x.get_absolute_url}}"><img alt="zdjecie {{x.nazwa}}" src="{{x.zdjecie_thumb.url}}"></a> 


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -