Last active
November 30, 2023 21:02
-
-
Save jairajsahgal/5e166a8ce11d715bc89f5462da5b3950 to your computer and use it in GitHub Desktop.
Handler Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOGGING = { | |
# ... (other logging configurations) | |
'handlers': { | |
'mail_admins': { | |
'level': 'ERROR', | |
'class': 'django.utils.log.AdminEmailHandler', | |
'include_html': True, | |
}, | |
}, | |
# ... (loggers, filters, and formatters) | |
} | |
# Found from https://stackoverflow.com/questions/50865739/not-receiving-emails-from-djangos-adminemailhandler |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment