How to get error reporting to execute django control commands?

We periodically run custom management commands on the server.

Is there a way to get something like email error messages working for a team?

+5
source share
1 answer

You can use the django AdminEmailHandler logging handler :

https://docs.djangoproject.com/en/dev/topics/logging/#django.utils.log.AdminEmailHandler

As the docs say:

This handler sends an email to site administrators for each received log message.

, , ,

+5

All Articles