From 33ac604d1058949be907c2aa7a9d3c59162d3e93 Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Thu, 25 Sep 2025 23:07:55 +0100 Subject: [PATCH] Add override functionality to database url via FRANKENRIGS_DATABASE_URL --- PyRIGS/settings.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PyRIGS/settings.py b/PyRIGS/settings.py index 36a0b889..fa992c5a 100644 --- a/PyRIGS/settings.py +++ b/PyRIGS/settings.py @@ -104,7 +104,10 @@ DATABASES = { if not DEBUG: import dj_database_url - DATABASES['default'] = dj_database_url.config() + if env("FRANKENRIGS_DATABASE_URL") is not None: + DATABASES['default'] = dj_database_url.config(env="FRANKENRIGS_DATABASE_URL") + else: + DATABASES['default'] = dj_database_url.config() # Logging LOGGING = {