From 38adfdbea22fe6a646861139dc5084c6f4cf1740 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kalle=20Ahlstr=C3=B6m?= Date: Mon, 13 May 2024 02:53:04 +0300 Subject: [PATCH] upgrade to psycopg 3 --- requirements.txt | 2 +- tenttiarkisto/settings/production.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 5e6f0c9..20ba1a2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ django==4.2.13 -psycopg2 +psycopg[c] django-storages[azure] argon2-cffi whitenoise diff --git a/tenttiarkisto/settings/production.py b/tenttiarkisto/settings/production.py index df2e9a9..ba08ede 100644 --- a/tenttiarkisto/settings/production.py +++ b/tenttiarkisto/settings/production.py @@ -14,7 +14,7 @@ def get_env_var(name): DATABASES = { "default": { - "ENGINE": "django.db.backends.postgresql_psycopg2", + "ENGINE": "django.db.backends.postgresql", "NAME": get_env_var("DB_NAME"), "USER": get_env_var("DB_USER"), "PASSWORD": get_env_var("DB_PASSWORD"),