From 0da2b88e29c762d2aa4fe2a53843a9b5db065dc9 Mon Sep 17 00:00:00 2001 From: Aakash Singh Date: Wed, 21 Jun 2023 13:29:02 +0530 Subject: [PATCH] remove django anymail config (#1396) Co-authored-by: Vignesh Hari --- config/settings/deployment.py | 20 -------------------- requirements/production.txt | 4 ---- 2 files changed, 24 deletions(-) diff --git a/config/settings/deployment.py b/config/settings/deployment.py index 93ac8f5c5a..7595c29784 100644 --- a/config/settings/deployment.py +++ b/config/settings/deployment.py @@ -57,21 +57,6 @@ # ------------------------------------------------------------------------------ EMAIL_USE_TLS = True -# Anymail -# ------------------------------------------------------------------------------ -# https://anymail.readthedocs.io/en/stable/installation/#installing-anymail -# INSTALLED_APPS += ["anymail"] # noqa F405 -# https://docs.djangoproject.com/en/dev/ref/settings/#email-backend -# https://anymail.readthedocs.io/en/stable/installation/#anymail-settings-reference -# https://anymail.readthedocs.io/en/stable/esps/mailgun/ -# EMAIL_BACKEND = "anymail.backends.mailgun.EmailBackend" -# ANYMAIL = { -# "MAILGUN_API_KEY": env("MAILGUN_API_KEY"), -# "MAILGUN_SENDER_DOMAIN": env("MAILGUN_DOMAIN"), -# "MAILGUN_API_URL": env("MAILGUN_API_URL", default="https://api.mailgun.net/v3"), -# } - - # LOGGING # ------------------------------------------------------------------------------ # https://docs.djangoproject.com/en/dev/ref/settings/#logging @@ -102,11 +87,6 @@ }, # Errors logged by the SDK itself "sentry_sdk": {"level": "ERROR", "handlers": ["console"], "propagate": False}, - "django.security.DisallowedHost": { - "level": "ERROR", - "handlers": ["console"], - "propagate": False, - }, }, } diff --git a/requirements/production.txt b/requirements/production.txt index 4789d827a4..cc3f63bc99 100644 --- a/requirements/production.txt +++ b/requirements/production.txt @@ -3,7 +3,3 @@ gunicorn==20.1.0 # https://github.com/benoitc/gunicorn sentry-sdk # https://github.com/getsentry/sentry-python newrelic - -# Django -# ------------------------------------------------------------------------------ -django-anymail[mailgun]==7.0.0 # https://github.com/anymail/django-anymail