add email backend to settings.py

This commit is contained in:
Trent Palmer 2021-03-05 20:12:02 -08:00
parent 356b825830
commit f9f8bf13ac
1 changed files with 7 additions and 0 deletions

View File

@ -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')