Skip to content

Commit

Permalink
Better checking if the enable email variable is set
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandgeider committed Dec 6, 2023
1 parent 913969c commit ea750d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extras/docker/development/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
# Configure a real backend in production
if DEBUG:
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
if os.environ.get("ENABLE_EMAIL"):
if env.bool("ENABLE_EMAIL", False):
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = env.str("EMAIL_HOST")
EMAIL_PORT = env.int("EMAIL_PORT")
Expand Down

0 comments on commit ea750d5

Please sign in to comment.