Groups
Groups
Sign in
Groups
Groups
Django users
Conversations
About
Send feedback
Help
Is DATE_TIME_FORMAT in settings operationnal
22 views
Skip to first unread message
dilo...@gmail.com
unread,
Sep 29, 2021, 6:27:47 PM
9/29/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
9/30/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
9/30/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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