Is DATE_TIME_FORMAT in settings operationnal

22 views
Skip to first unread message

dilo...@gmail.com

unread,
Sep 29, 2021, 6:27:47 PM9/29/21
to Django users
I have carefully read the documentation for the use of DATE_TIME8ROMAT in settings. It is here https://docs.djangoproject.com/en/3.2/ref/templates/builtins/#date

If I put the format string in the template it does format it correctly. If I put the format in the settings, I get the default formatting.
What I am missing?
the code is in the file included in this post.
WHRA.zip

bnmng

unread,
Sep 30, 2021, 9:33:04 AM9/30/21
to Django users
I haven't experimented with this yet so I'm not sure, but what about this note  in https://docs.djangoproject.com/en/3.2/ref/settings/#std:setting-DATE_FORMAT

   When USE_L10N is True, the locale-dictated format has higher precedence and will be applied instead  

dilo...@gmail.com

unread,
Sep 30, 2021, 11:58:06 AM9/30/21
to Django users
thanks I had read the note but the language was incorrectly set. Thanks
Reply all
Reply to author
Forward
0 new messages