Set SERVER_EMAIL required for error notifications

This commit is contained in:
Ben Sturmfels 2023-04-24 19:57:21 +10:00
parent f6841d5135
commit 6ddb7b5675
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0

View file

@ -605,6 +605,7 @@ 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] ADMINS = [('', email) for email in os.environ.get('DJANGO_ADMINS', '').split(',') if email]
SERVER_EMAIL = DEFAULT_FROM_EMAIL
if not DEBUG: if not DEBUG:
# Django recommended security settings. # Django recommended security settings.