Skip to content

Commit

Permalink
updated settings.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Reeya123 committed Jul 9, 2024
1 parent a0ee331 commit 51aad20
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/portaluserdb/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@
if secrets["GOOGLE_KEYS"]["DJANGO_GOOGLE_OAUTH2_CLIENT_SECRET"]:
GOOGLE_SECRET = secrets["GOOGLE_KEYS"]["DJANGO_GOOGLE_OAUTH2_CLIENT_SECRET"]

EMAIL_BACKEND = secrets["SERVER"]["EMAIL_BACKEND"]
try:
EMAIL_BACKEND = secrets["SERVER"]["EMAIL_BACKEND"]
except KeyError:
raise KeyError("EMAIL_BACKEND not found in secrets")

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
Expand Down

0 comments on commit 51aad20

Please sign in to comment.