Skip to content

Commit

Permalink
Add parser for ADMINS env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
geekygirlsarah committed Oct 16, 2023
1 parent 3628bc3 commit 6f77327
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions codethesaurus/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""

from ast import literal_eval
from pathlib import Path
import os
import dj_database_url
Expand Down Expand Up @@ -149,7 +149,7 @@
]

# For server error reporting
ADMINS = os.getenv('ADMINS', '')
ADMINS = literal_eval(os.getenv('ADMINS', '')) if os.getenv('ADMINS', '') != '' else ''
EMAIL_HOST = os.getenv('EMAIL_HOST', '')
EMAIL_HOST_USER = os.getenv('EMAIL_HOST_USER', '')
EMAIL_HOST_PASSWORD = os.getenv('EMAIL_HOST_PASSWORD', '')
Expand Down

0 comments on commit 6f77327

Please sign in to comment.