From f9f8bf13ac2f7e88f88e7beaf8aac2f04b069e7e Mon Sep 17 00:00:00 2001 From: Trent Palmer Date: Fri, 5 Mar 2021 20:12:02 -0800 Subject: [PATCH] add email backend to settings.py --- tp/settings.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tp/settings.py b/tp/settings.py index 45f89e8..1c40403 100644 --- a/tp/settings.py +++ b/tp/settings.py @@ -149,3 +149,10 @@ IMAGES_FILE_STORAGE = 'tp.storage_backends.PublicImageStorage' STATICFILES_DIRS = (os.path.join(BASE_DIR, 'static'),) LOGGING = init_logging_settings() + +EMAIL_BACKEND = os.getenv('EMAIL_BACKEND') +EMAIL_HOST = os.getenv('EMAIL_HOST') +EMAIL_PORT = int(os.getenv('EMAIL_PORT')) +EMAIL_USE_TLS = os.getenv('EMAIL_USE_TLS') == "True" +EMAIL_HOST_USER = os.getenv('EMAIL_HOST_USER') +EMAIL_HOST_PASSWORD = os.getenv('EMAIL_HOST_PASSWORD')