From 6172ec70267c7b10c8697a17bc0f4e120fce60f9 Mon Sep 17 00:00:00 2001 From: psyes9 Date: Thu, 30 Nov 2023 03:01:45 +0000 Subject: [PATCH] azure database compatability --- backend/investmentportfolio/settings.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/backend/investmentportfolio/settings.py b/backend/investmentportfolio/settings.py index 24b4c13..2e5320e 100644 --- a/backend/investmentportfolio/settings.py +++ b/backend/investmentportfolio/settings.py @@ -77,8 +77,12 @@ DATABASES = { 'default': { - 'ENGINE': 'django.db.backends.sqlite3', - 'NAME': BASE_DIR / 'db.sqlite3', + 'ENGINE': 'django.db.backends.postgresql', + 'NAME': 'eethansmith-investmentportfolio-database', + 'USER': 'kkupfurluc', + 'PASSWORD': '1FQ6E653770138EP$', + 'HOST': 'Azure-DevOps-PostgreSQL-Server.postgres.database.azure.com', + 'PORT': '5432', # default postgres port } }