Django - Using a different email backend for admin error emails
问题 I'm using a custom email backend in my Django application (CeleryEmailBackend in this case): EMAIL_BACKEND = 'djcelery_email.backends.CeleryEmailBackend' My logging configuration: LOGGING = { # ... 'handlers': { 'mail_admins': { 'level': 'ERROR', 'filters': ['require_debug_false'], 'class': 'django.utils.log.AdminEmailHandler', }, # ... } The Admin error emails also get sent by the same email backend. So if there is a problem with the email backend (e.g. Celery is not running). Then I won't