From ad59b7da75799189ca07b9f6b145885cf4c4f907 Mon Sep 17 00:00:00 2001 From: a19hu Date: Thu, 10 Oct 2024 23:57:51 +0530 Subject: [PATCH] comment some code --- server/backend/settings.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/server/backend/settings.py b/server/backend/settings.py index 90cc561b..95cf7c4c 100644 --- a/server/backend/settings.py +++ b/server/backend/settings.py @@ -84,15 +84,15 @@ # Database # https://docs.djangoproject.com/en/5.0/ref/settings/#databases -if DJANGO_ENV == 'development': - DATABASES = { - 'default': { - 'ENGINE': 'django.db.backends.sqlite3', - 'NAME': BASE_DIR / 'db.sqlite3', - } - } -else: # Production settings - DATABASES = { +# if DJANGO_ENV == 'development': +# DATABASES = { +# 'default': { +# 'ENGINE': 'django.db.backends.sqlite3', +# 'NAME': BASE_DIR / 'db.sqlite3', +# } +# } +# else: # Production settings +DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': os.getenv('DB_NAME', 'familytree'), @@ -101,7 +101,7 @@ 'HOST': os.getenv('DB_HOST', '10.6.0.63'), 'PORT': os.getenv('DB_PORT', '5432'), } - } +} # Password validation