Skip to content
Snippets Groups Projects
Unverified Commit 1cef905f authored by Dan Braghis's avatar Dan Braghis Committed by GitHub
Browse files

Merge pull request #417 from OpenTechFund/bugfix/only-use-anymail-if-configured

Only use the anymail backend when configured
parents b9a51aeb eabe79c4
No related branches found
No related tags found
No related merge requests found
...@@ -360,10 +360,9 @@ SLACK_DESTINATION_ROOM = env.get('SLACK_DESTINATION_ROOM', None) ...@@ -360,10 +360,9 @@ SLACK_DESTINATION_ROOM = env.get('SLACK_DESTINATION_ROOM', None)
# Email and Celery config # Email and Celery config
EMAIL_BACKEND = 'anymail.backends.mailgun.EmailBackend'
if 'MAILGUN_API_KEY' in env: if 'MAILGUN_API_KEY' in env:
MAILGUN_API_KEY = env.get('MAILGUN_API_KEY') MAILGUN_API_KEY = env.get('MAILGUN_API_KEY')
EMAIL_BACKEND = 'anymail.backends.mailgun.EmailBackend'
if 'ANYMAIL_WEBHOOK_SECRET' in env: if 'ANYMAIL_WEBHOOK_SECRET' in env:
ANYMAIL_WEBHOOK_SECRET = env.get('ANYMAIL_WEBHOOK_SECRET') ANYMAIL_WEBHOOK_SECRET = env.get('ANYMAIL_WEBHOOK_SECRET')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment