From dc966ce3355a41a21f69a6a737000a71e5259c53 Mon Sep 17 00:00:00 2001 From: Ben Sturmfels Date: Fri, 15 Sep 2023 23:11:28 +1000 Subject: [PATCH] Disable timezone support to work around Django/psycopg issues --- pinaxcon/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pinaxcon/settings.py b/pinaxcon/settings.py index a82361ad..9a2c276d 100644 --- a/pinaxcon/settings.py +++ b/pinaxcon/settings.py @@ -131,7 +131,8 @@ LANGUAGE_CODE = "en-us" SITE_ID = int(os.environ.get("SITE_ID", 1)) USE_I18N = True USE_L10N = True -USE_TZ = True +USE_TZ = False # Work around Django 2.2 incompatibility with psycopg >= + # 2.9. Needed since Python 3.11 doesn't support psycogp < 2.9. MEDIA_ROOT = os.environ.get("MEDIA_ROOT", os.path.join(PACKAGE_ROOT, "site_media", "media")) MEDIA_URL = "/site_media/media/"