Disable timezone support to work around Django/psycopg issues

This commit is contained in:
Ben Sturmfels 2023-09-15 23:11:28 +10:00
parent b0ec7ce04e
commit dc966ce335
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0

View file

@ -131,7 +131,8 @@ LANGUAGE_CODE = "en-us"
SITE_ID = int(os.environ.get("SITE_ID", 1)) SITE_ID = int(os.environ.get("SITE_ID", 1))
USE_I18N = True USE_I18N = True
USE_L10N = 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_ROOT = os.environ.get("MEDIA_ROOT", os.path.join(PACKAGE_ROOT, "site_media", "media"))
MEDIA_URL = "/site_media/media/" MEDIA_URL = "/site_media/media/"