diff --git a/src/objects/conf/base.py b/src/objects/conf/base.py index 6f1e9eb8..fce6fdcd 100644 --- a/src/objects/conf/base.py +++ b/src/objects/conf/base.py @@ -203,9 +203,6 @@ FIXTURE_DIRS = (os.path.join(DJANGO_PROJECT_DIR, "fixtures"),) -DEFAULT_FROM_EMAIL = "objects@example.com" -EMAIL_TIMEOUT = 10 - LOGGING_DIR = os.path.join(BASE_DIR, "log") LOGGING = { @@ -366,6 +363,20 @@ "REMOTE_ADDR", ) +# +# Sending EMAIL +# +EMAIL_HOST = config("EMAIL_HOST", default="localhost") +EMAIL_PORT = config( + "EMAIL_PORT", default=25 +) # disabled on Google Cloud, use 487 instead +EMAIL_HOST_USER = config("EMAIL_HOST_USER", default="") +EMAIL_HOST_PASSWORD = config("EMAIL_HOST_PASSWORD", default="") +EMAIL_USE_TLS = config("EMAIL_USE_TLS", default=False) +EMAIL_TIMEOUT = 10 + +DEFAULT_FROM_EMAIL = config("DEFAULT_FROM_EMAIL", "objects@example.com") + # Sentry SDK SENTRY_DSN = config("SENTRY_DSN", None)