Configure ADMINS setting via environment variable
This commit is contained in:
parent
064353d6ff
commit
31e11c5350
1 changed files with 2 additions and 0 deletions
|
@ -591,3 +591,5 @@ VENUELESS_SECRET = os.environ.get('VENUELESS_SECRET', SECRET_KEY)
|
||||||
|
|
||||||
ACCOUNT_SIGNUP_REDIRECT_URL = '/dashboard/'
|
ACCOUNT_SIGNUP_REDIRECT_URL = '/dashboard/'
|
||||||
ACCOUNT_LOGIN_REDIRECT_URL = '/dashboard/'
|
ACCOUNT_LOGIN_REDIRECT_URL = '/dashboard/'
|
||||||
|
|
||||||
|
ADMINS = [('', email) for email in os.environ.get('DJANGO_ADMINS', '').split(',') if email]
|
||||||
|
|
Loading…
Reference in a new issue