From eb63f4a026b1cd27eebee8be92b2ca04e4b9dd83 Mon Sep 17 00:00:00 2001 From: Clint Plummer Date: Sun, 18 Dec 2022 15:20:26 -0600 Subject: [PATCH] WIP --- backend/.gitignore | 2 +- backend/backend/settings.py | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/backend/.gitignore b/backend/.gitignore index 29972e6..5df8e75 100644 --- a/backend/.gitignore +++ b/backend/.gitignore @@ -6,5 +6,5 @@ # python virtual environments -env +fenv venv diff --git a/backend/backend/settings.py b/backend/backend/settings.py index 403fb51..60c55ed 100644 --- a/backend/backend/settings.py +++ b/backend/backend/settings.py @@ -94,6 +94,21 @@ ) } +# https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-rds.html#python-rds-connect +# import os + +# if 'RDS_HOSTNAME' in os.environ: +# DATABASES = { +# 'default': { +# 'ENGINE': 'django.db.backends.mysql', +# 'NAME': os.environ['RDS_DB_NAME'], +# 'USER': os.environ['RDS_USERNAME'], +# 'PASSWORD': os.environ['RDS_PASSWORD'], +# 'HOST': os.environ['RDS_HOSTNAME'], +# 'PORT': os.environ['RDS_PORT'], +# } +# } + # Password validation # https://docs.djangoproject.com/en/4.1/ref/settings/#auth-password-validators