user2771714
user2771714

Reputation: 311

Datefield in Template in different language than english

I was trying to print DateField from a Model in my Template, but its in English, but i want it in different language (in my case Czech). Where is the problem? I have this in my settings.py, but its not working

TIME_ZONE = 'Europe/Prague'
LANGUAGE_CODE = 'cs'

Upvotes: 0

Views: 80

Answers (1)

Michael
Michael

Reputation: 539

Have you tried to use this filter in your template ?

Edit : Try to turn your variable "USE_I18N" to True in your settings.py, it should work.

Upvotes: 1

Related Questions