Skip to content

Commit

Permalink
🔧 Modify settings.py to handle confidential.py for DB settings
Browse files Browse the repository at this point in the history
  • Loading branch information
yjeong-k committed Oct 25, 2023
1 parent ca00265 commit ba62bce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,10 @@ def get_secret(setting, secrets=secrets):

# Remote DB settings
# Add your own confidential.py
import confidential
if not ("GITHUB_ACTIONS" in os.environ):
import confidential
DATABASES = confidential.DATABASES

DATABASES = confidential.DATABASES

# Password validation
# https://docs.djangoproject.com/en/4.2/ref/settings/#auth-password-validators
Expand Down

0 comments on commit ba62bce

Please sign in to comment.