Skip to content

Instantly share code, notes, and snippets.

@jairajsahgal
Last active November 30, 2023 21:02
Show Gist options
  • Save jairajsahgal/5e166a8ce11d715bc89f5462da5b3950 to your computer and use it in GitHub Desktop.
Save jairajsahgal/5e166a8ce11d715bc89f5462da5b3950 to your computer and use it in GitHub Desktop.
Handler Example
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