In a Django template I'm displaying a date like:
{{ article.published_at|date }}
which displays like:
Nov. 21, 2018
I would like to change this format, but:
I am using Localization, so I don't want to specify a specific date format in the template -- each language will have its own way of displaying dates.
The Django
DATE_FORMATsetting does not have any effect when theL10Nsetting isTrue.
So how would I:
- Use a different format for this date when the current language is English (
en) - Use the current language's default date format when it's not
en