django/django — pull request #8 by davehughes (2012-04-28 17:15:07+00:00)
Title: Added DEBUG_PLAINTEXT_AJAX_ERROR_MESSAGES setting to customize error display

The plaintext error responses for AJAX requests in 1.4 drop a lot of the stack trace context that was included in the HTML responses pre-1.4. Tools like the network response 'Preview' viewer in Chrome make it easy to navigate the HTML response to drill down into the richer context it provides. This patch maintains the 1.4 default but enables the response to be configured to use the original behavior.