Search code examples
pythondjangodjango-emaildjango-errors

Django Error Reporting Email when Debug = True


Is there a way to get Django to email me error reports even though I have debug set to True?

I didn't see anything in the docs.

Edit:

I'm on Django 1.2 if it matters. No, this isn't a production system.


Solution

  • You might want to look at django-sentry. It's really designed for use in production, but it has TESTING setting to make it work when DEBUG=True as well. It might actually send out emails at that point, too -- haven't tested that myself, but it'll at least keep a log of errors that you can view at any time from any web-enabled device.

    Besides, when you do eventually go to production, it'll be a life-saver.