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": {