Skip to content
Snippets Groups Projects
Commit 639bec62 authored by florimondmanca's avatar florimondmanca
Browse files

add email config through env vars

parent 7c813a21
No related branches found
No related tags found
No related merge requests found
......@@ -191,6 +191,13 @@ AUTH_PASSWORD_VALIDATORS = [
},
]
# Email configuration
EMAIL_HOST = os.environ.get('EMAIL_HOST')
EMAIL_PORT = os.environ.get('EMAIL_PORT', 587)
EMAIL_HOST_USER = os.environ.get('EMAIL_HOST_USER')
EMAIL_HOST_PASSWORD = os.environ.get('EMAIL_HOST_PASSWORD')
EMAIL_USE_TLS = os.environ.get('EMAIL_USE_TLS', True)
# Internationalization
# https://docs.djangoproject.com/en/2.0/topics/i18n/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment