Mermoz
Mermoz

Reputation: 15494

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 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.

Upvotes: 1

Views: 1251

Answers (1)

Daniel Roseman
Daniel Roseman

Reputation: 600049

This is built in. Just add your email address to ADMINS in settings.py. See the documentation.

Upvotes: 6

Related Questions