Configure ADMINS setting via environment variable

This commit is contained in:
Ben Sturmfels 2023-04-20 15:40:28 +10:00
parent 064353d6ff
commit 31e11c5350
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0

View file

@ -591,3 +591,5 @@ VENUELESS_SECRET = os.environ.get('VENUELESS_SECRET', SECRET_KEY)
ACCOUNT_SIGNUP_REDIRECT_URL = '/dashboard/'
ACCOUNT_LOGIN_REDIRECT_URL = '/dashboard/'
ADMINS = [('', email) for email in os.environ.get('DJANGO_ADMINS', '').split(',') if email]