custom FORMAT_SETTINGS

2016-03-19 Thread Erik Stein
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

Re: custom FORMAT_SETTINGS

2016-03-18 Thread Erik Stein
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 Djan