Update DB settings for Django v3

This commit is contained in:
Aarni Halinen
2022-08-01 21:24:04 +03:00
parent 3e9084ca1d
commit 7fd30e3eba
3 changed files with 6 additions and 42 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ ENABLE_AUTOMATIC_EMAILS = True
DB_OPTIONS = {"sslmode": "require"} if os.getenv("DB_SSL", False) == "True" else {}
DATABASES = {
"default": {
"ENGINE": "django.db.backends.postgresql_psycopg2",
"ENGINE": "django.db.backends.postgresql",
"NAME": os.getenv("DB_NAME", "postgres"),
"USER": os.getenv("DB_USER", "postgres"),
"PASSWORD": os.getenv("DB_PASSWD", "postgres"),