With the USE_L10N
setting enabled (which is the default in Django 4) you can't override date/time formatting in your settings.py
- it has to be done at the locale level.
The default date/time formatting for English uses 24-hour time. But, if you're in the US you commonly need to change it use 12-hour time. This is how you do that without disabling USE_L10N
.
See https://docs.djangoproject.com/en/4.1/ref/settings/#format-module-path for more details.
Within your site's main folder (where your settings.py
lives), create this structure:
formats /
__init__.py