Skip to content

Commit b054d0a

Browse files
committed
Disable the new default enabled USE_L10N
In Django 4.0 USE_L10N is by default enabled overriding our custom date/time format.
1 parent fbb09ed commit b054d0a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

settings.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
DATE_FORMAT = 'Y-m-d'
3838
DATETIME_FORMAT = 'Y-m-d H:i'
3939

40+
# Disable so our own DATE_FORMAT/DATETIME_FORMAT is used.
41+
USE_L10N = False
42+
4043
# Login URL configuration
4144
LOGIN_URL = '/login/'
4245
LOGIN_REDIRECT_URL = '/'
@@ -208,7 +211,7 @@
208211

209212
# Import local settings
210213
try:
211-
from local_settings import * # noqa
214+
from local_settings import * # noqa
212215
except ImportError:
213216
pass
214217

0 commit comments

Comments
 (0)