Skip to content

Commit

Permalink
Merge pull request #985 from watchdogpolska/ad-m-patch-3
Browse files Browse the repository at this point in the history
Move EMAIL_BACKEND to environment variable
  • Loading branch information
dzejkobi committed Sep 21, 2021
2 parents 04b7bc8 + e79d6bb commit dd6348f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@
DEFAULT_FROM_EMAIL = env(
"DJANGO_DEFAULT_FROM_EMAIL", default="feder <noreply@dane.siecobywatelska.pl>"
)
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
EMAIL_BACKEND = env(
"DJANGO_EMAIL_BACKEND",
default="django.core.mail.backends.console.EmailBackend",
)
EMAIL_SUBJECT_PREFIX = env("DJANGO_EMAIL_SUBJECT_PREFIX", default="[feder] ")
SERVER_EMAIL = env("DJANGO_SERVER_EMAIL")

Expand Down

0 comments on commit dd6348f

Please sign in to comment.