toastdriven/django-tastypie — pull request #329 by ross (2012-01-12 18:03:01+00:00)
Title: log exceptions regardless of settings.DEBUG

it's best if exceptions (via _handle_500) are logged regardless of settings.DEBUG. it's much easier to look at stack traces in the console or via file (if you have things configured to go to one) rather than always having to debug exceptions that have been returned to the calling client.

it's not that big a deal when the calling client is a web browser (at least with jsonview,) but if you're calling with another device (iPad, android, ...) it's a pain to have to look there for the message.