From 2c65cc061ecbeb9f8544bbbf613ab6f180f0023f Mon Sep 17 00:00:00 2001 From: Bastien Ogier Date: Mon, 9 Feb 2026 23:36:55 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80(settings)=20standardize=20DATABASE?= =?UTF-8?q?=5FURL=20environment=20retrieval?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (settings) standardize DATABASE_URL environment retrieval --- src/backend/meet/settings.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/backend/meet/settings.py b/src/backend/meet/settings.py index 4b4a8ba9..4da353d7 100755 --- a/src/backend/meet/settings.py +++ b/src/backend/meet/settings.py @@ -13,7 +13,7 @@ https://docs.djangoproject.com/en/3.1/ref/settings/ # pylint: disable=too-many-lines import json -from os import environ, path +from os import path from socket import gethostbyname, gethostname from django.utils.translation import gettext_lazy as _ @@ -94,7 +94,9 @@ class Base(Configuration): # Database DATABASES = { "default": dj_database_url.config() - if environ.get("DATABASE_URL") + if values.DatabaseURLValue( + None, environ_name="DATABASE_URL", environ_prefix=None + ) else { "ENGINE": values.Value( "django.db.backends.postgresql_psycopg2",