From 141019ed751ad11d6431693f3aa9cb21d5a1dc3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=AD=C3=B0ir=20Valberg=20Gu=C3=B0mundsson?= Date: Wed, 3 Mar 2021 18:06:36 +0100 Subject: [PATCH] Add DEFAULT_FROM_EMAIL. --- src/project/settings.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/project/settings.py b/src/project/settings.py index af44f9e..4102a86 100644 --- a/src/project/settings.py +++ b/src/project/settings.py @@ -108,6 +108,7 @@ LOGIN_REDIRECT_URL = "/" EMAIL_BACKEND = env.str( "EMAIL_BACKEND", default="django.core.mail.backends.console.EmailBackend" ) +DEFAULT_FROM_EMAIL = env.str("DEFAULT_FROM_EMAIL", default="") # Parse email URLs, e.g. "smtp://" email = env.dj_email_url("EMAIL_URL", default="smtp://") EMAIL_HOST = email["EMAIL_HOST"]