[Answered ]-Logging Django Errors instead of returning them to inspect API callback

2👍

If you set ADMINS in your settings.py (and set DEBUG=False) you will be emailed all 500 server errors (just like the DEBUG error page).

However, if you want your app to continue without responding with a 500, you can import logging and write your own debug log. There’s a good tutorial here:

http://simonwillison.net/2008/May/22/debugging/

Leave a comment