Django: logging or send errors by mail
I would like to know if there is a simple way to configure django in order that the error page of the debug mode is sent to the admin by mail.
It would be even better to use logging but开发者_如何学C how can you add a error to your logger if it raised by django itself (ad not one of your views)?
I've check the logging facility of the development version but I'm running Django 1.2.
Any suggestion appreciated.
This is built in. Just add your email address to ADMINS in settings.py. See the documentation.
加载中,请稍侯......
精彩评论