last day (31 days later) » 

Rob
6:34 PM
@user12138973 You should be able to speak here now cc @Chillie
 
Thanks a lot, @Rob, appreciate the effort.
 
Rob
No problem
They might not get that ping for 15minutes or so, however
 
Roger, also, judjing by their location they might be asleep. =)
@user12138973 I made this chat so we can figure the django thing out. And If we're lucky nodoby will notice a bit of Russian. В общем, можно по-русски, but the mods would prefer if we kept to English.
I had the problem with django file paths too, but in a different manner: my OS username was in Cyrillic, so django could not even start properly. I didn't figure out a solution then: i just avoided non-latin characters for `runserver`.
However, my django setup has no problem actually serving unicode-named static files while running. So we will have to do some digging to debug.
If you wake up and I'm still in bed: look at the 500 error in debug mode when you try to lod the non-latin templates. Look at the tracebak the page is providing. What you can do is access the server, locate the django file that encodes the paths and mokeypatch a suiting encoding to the function that reads/constructs the path to file/template.
 
6:53 PM
@Chillie I've just solved this problem. My files were in my folder on windows, and their names were in cp1251 encoding, but python/django and linux overall takes utf-8. So i changed names to utf-8 (Forced FileZilla to autochange it to utf-8)
 
Yup! That will do it! Удачи с сайтом! =)
 
Thanks for your efforts, it helped me a lot in understanding this problem
=)
 
@user12138973 one more thing: let's clean up the comment on your SO post.
It would also help people if you posted a self-answer.
 
Sure, i will leave an answer there
 
Perfect!
@Rob thanks so much again.
 
Rob
6:56 PM
Any time!
 

last day (31 days later) »