开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜