Category Archives: Django

[Python] Django FileField problem with polish/non-english letters

I’ve created a Django model using FileField: class Car(models.Model): … car = models.FileField(upload_to=’upl/%Y/%m/%d’) …class Car(models.Model): … car = models.FileField(upload_to=’upl/%Y/%m/%d’) … I wanted to upload files named using polish characters (for example: “auto-żółw”). Unfortunately,  Django erease polish letters (“auto-żółw” -> “auto-w”).

Posted in Django, Python | Tagged , , | Leave a comment