From 50783457f5893039db1fda1c751f3393b9798cfc Mon Sep 17 00:00:00 2001 From: Tarashish Mishra Date: Fri, 24 Nov 2023 16:06:07 +0530 Subject: [PATCH] Make database name configurable (#648) --- config/settings/production.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/settings/production.py b/config/settings/production.py index a49977b6..77e29ecc 100644 --- a/config/settings/production.py +++ b/config/settings/production.py @@ -67,7 +67,7 @@ DATABASES = { 'default': { 'ENGINE': 'django.contrib.gis.db.backends.postgis', - 'NAME': 'osmcha', + 'NAME': env('POSTGRES_DATABASE', default='osmcha'), 'USER': env('POSTGRES_USER'), 'PASSWORD': env('POSTGRES_PASSWORD'), 'HOST': env('PGHOST', default='localhost')