From 84db9bfdf1dd7ff4b8cec966036f004a84b98a71 Mon Sep 17 00:00:00 2001 From: Jaimyn Mayer Date: Sun, 11 Aug 2024 13:50:39 +1000 Subject: [PATCH] removed deprecated MMDB_SECRET env var --- memberportal/membermatters/settings.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/memberportal/membermatters/settings.py b/memberportal/membermatters/settings.py index 524793a0..f7660f99 100644 --- a/memberportal/membermatters/settings.py +++ b/memberportal/membermatters/settings.py @@ -153,20 +153,6 @@ "PORT": os.environ.get("POSTGRES_PORT", "5432"), } } -elif "MMDB_SECRET" in os.environ: - # This is a JSON blob containing the database connection details, generated by "copilot" in an AWS deployment - # Fields in this JSON blob are: {username, host, dbname, password, port} - database_config = json.loads(os.environ["MMDB_SECRET"]) - DATABASES = { - "default": { - "ENGINE": "django_prometheus.db.backends.mysql", - "NAME": database_config.get("dbname"), - "USER": database_config.get("username"), - "PASSWORD": database_config.get("password"), - "HOST": database_config.get("host"), - "PORT": database_config.get("port"), - } - } else: DATABASES = { "default": {