From 039d87ee74fe00c0e8e0162b478ffb4258b52288 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO <ynerant@crans.org> Date: Tue, 18 Jan 2022 22:04:59 +0100 Subject: [PATCH] [constellation] usage of psycopg2 is deprecated Signed-off-by: Yohann D'ANELLO <ynerant@crans.org> --- roles/constellation/tasks/main.yml | 1 - .../constellation/templates/constellation/settings_local.py.j2 | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/roles/constellation/tasks/main.yml b/roles/constellation/tasks/main.yml index 923b4119..cacace83 100644 --- a/roles/constellation/tasks/main.yml +++ b/roles/constellation/tasks/main.yml @@ -15,7 +15,6 @@ - python3-django-polymorphic - python3-ipython - python3-pip - - python3-psycopg2 - python3-requests register: apt_result retries: 3 diff --git a/roles/constellation/templates/constellation/settings_local.py.j2 b/roles/constellation/templates/constellation/settings_local.py.j2 index b55d1e36..c9cf83be 100644 --- a/roles/constellation/templates/constellation/settings_local.py.j2 +++ b/roles/constellation/templates/constellation/settings_local.py.j2 @@ -29,7 +29,7 @@ TIME_ZONE = 'Europe/Paris' # The storage systems parameters to use DATABASES = { 'default': { # The DB - 'ENGINE': 'django.db.backends.postgresql_psycopg2', + 'ENGINE': 'django.db.backends.postgresql', 'NAME': '{{ constellation.database.name }}', 'USER': '{{ constellation.database.user }}', 'PASSWORD': "{{ constellation.database.password }}", -- GitLab