From 8fc41fbcd8dc468f68f8f287b45ca42f7a851d8e Mon Sep 17 00:00:00 2001 From: Arthur Fonseca Date: Mon, 10 Jun 2024 14:50:04 -0300 Subject: [PATCH] Update settings.py --- driverplan/driverplan/settings.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/driverplan/driverplan/settings.py b/driverplan/driverplan/settings.py index 45e18b3..f50a037 100644 --- a/driverplan/driverplan/settings.py +++ b/driverplan/driverplan/settings.py @@ -82,12 +82,12 @@ DATABASES = { 'default': { - 'ENGINE': 'django.db.backends.postgresql_psycopg2', - 'NAME': 'driverplan_db', - 'USER': 'admin', - 'PASSWORD': 'kYDTjmsG8b2D8t1jycIhFZkjPBKYlpTw', - 'HOST': 'dpg-cpjii2acn0vc73ampkg0-a.oregon-postgres.render.com', - 'PORT': '5432', + 'ENGINE': os.getenv('DB_ENGINE', 'change-me'), + 'NAME': os.getenv('POSTGRES_DB', 'change-me'), + 'USER': os.getenv('POSTGRES_USER', 'change-me'), + 'PASSWORD': os.getenv('POSTGRES_PASSWORD', 'change-me'), + 'HOST': os.getenv('POSTGRES_HOST', 'change-me'), + 'PORT': os.getenv('POSTGRES_PORT', 'change-me'), } }