Merge pull request #556 from pcoder/feature/use_email_smarthost

Obtain email host, port and tls settings from env
This commit is contained in:
Pcoder 2017-12-31 18:14:46 +01:00 committed by GitHub
commit e85993eabf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,8 +63,12 @@ LOGIN_URL = None
LOGOUT_URL = None LOGOUT_URL = None
LOGIN_REDIRECT_URL = None LOGIN_REDIRECT_URL = None
EMAIL_HOST = "localhost" EMAIL_HOST = env("EMAIL_HOST")
EMAIL_PORT = 25 if not EMAIL_HOST:
EMAIL_HOST = "localhost"
EMAIL_PORT = int_env("EMAIL_PORT", 25)
EMAIL_USE_TLS = bool_env("EMAIL_USE_TLS")
SECRET_KEY = env('DJANGO_SECRET_KEY') SECRET_KEY = env('DJANGO_SECRET_KEY')
# Application definition # Application definition