From 2e10f51dc2cd16ecf0dcc8e9f22731cbdf518a7a Mon Sep 17 00:00:00 2001 From: zubairshakoorarbisoft Date: Tue, 26 Sep 2023 22:40:59 +0500 Subject: [PATCH] fix: USE_DEPRECATED_PYTZ added in settings --- edx_exams/settings/base.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/edx_exams/settings/base.py b/edx_exams/settings/base.py index 91d93a7c..db8b9fe8 100644 --- a/edx_exams/settings/base.py +++ b/edx_exams/settings/base.py @@ -128,6 +128,11 @@ def root(*path_fragments): USE_TZ = True +# Django 4.0+ uses zoneinfo if this is not set. We can remove this and +# migrate to zoneinfo after Django 4.2 upgrade. See more on following url +# https://docs.djangoproject.com/en/4.2/releases/4.0/#zoneinfo-default-timezone-implementation +USE_DEPRECATED_PYTZ = True + LOCALE_PATHS = ( root('conf', 'locale'), )