Nevermind, I reused the locale-directory for the format-definitions and didn't realize, that the path has to be a python module (or: didn't realize, that the locale directory isn't a module by default).

best
-- erik



On 18.03.2016 11:08, Erik Stein wrote:

hello --

I'd like to extend Django's localized formats by my own defaults, using
the FORMAT_MODULE_PATH setting, e.g. to have those:

SHORT_DAY_ONLY_FORMAT = 'd.'
SHORT_DAYMONTH_FORMAT = 'd.N.'
DATE_RANGE_SEPARATOR = '–'

Sadly, in django.utils.formats.get_format Django checks the hard coded
list of possible FORMAT_SETTINGS and returns the placeholder string if
it doesn't know the format.

Do I missing something or is it just not possible currently to extend
the default formats?

best
-- erik


--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/56EC4847.3020403%40classlibrary.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to