Disable the new default enabled USE_L10N
In Django 4.0 USE_L10N is by default enabled overriding our custom date/time format.
This commit is contained in:
parent
fbb09ed904
commit
b054d0a7f3
@ -37,6 +37,9 @@
|
||||
DATE_FORMAT = 'Y-m-d'
|
||||
DATETIME_FORMAT = 'Y-m-d H:i'
|
||||
|
||||
# Disable so our own DATE_FORMAT/DATETIME_FORMAT is used.
|
||||
USE_L10N = False
|
||||
|
||||
# Login URL configuration
|
||||
LOGIN_URL = '/login/'
|
||||
LOGIN_REDIRECT_URL = '/'
|
||||
@ -208,7 +211,7 @@
|
||||
|
||||
# Import local settings
|
||||
try:
|
||||
from local_settings import * # noqa
|
||||
from local_settings import * # noqa
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user