Skip to content

Commit

Permalink
Merge pull request #97 from sjoerdie/feature/email
Browse files Browse the repository at this point in the history
Add email environment variables
  • Loading branch information
alextreme authored Feb 27, 2024
2 parents d1618dc + 7b4f114 commit 9be2d29
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions src/objecttypes/conf/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,6 @@

FIXTURE_DIRS = (os.path.join(DJANGO_PROJECT_DIR, "fixtures"),)

DEFAULT_FROM_EMAIL = "[email protected]"
EMAIL_TIMEOUT = 10

LOGGING_DIR = os.path.join(BASE_DIR, "log")

LOGGING = {
Expand Down Expand Up @@ -368,6 +365,20 @@
# See: http://django-hijack.readthedocs.io/en/latest/configuration/#allowing-get-method-for-hijack-views
HIJACK_ALLOW_GET_REQUESTS = True

#
# 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", "[email protected]")

# Sentry SDK
SENTRY_DSN = config("SENTRY_DSN", None)

Expand Down

0 comments on commit 9be2d29

Please sign in to comment.