Skip to content

Commit 00ea4c3

Browse files
committed
Make Django tests use USE_TZ = True to silence Django 5.x deprecation warning
1 parent b87f18e commit 00ea4c3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

settings.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@
5151
'django.contrib.auth.middleware.AuthenticationMiddleware',
5252
]
5353

54+
USE_TZ = True
55+
USE_I18N = True
56+
TIME_ZONE = 'UTC'
57+
5458
# set to a lower number than the default, since
5559
# we want the tests to be fast, default is 100
5660
LOCALIZED_FIELDS_MAX_RETRIES = 3

0 commit comments

Comments
 (0)