Skip to content

Conversation

@lovelydinosaur
Copy link
Contributor

@lovelydinosaur lovelydinosaur commented Aug 18, 2016

Closes #4409

Ensures that Django's standard exception handling still runs in all uncaught cases, but forces the debug.technical_500_response to render in either plaintext or html, depending on the content negotiation that's taken place.

We have to implement a hack to achieving this, overriding the underlying HTTPRequest.is_ajax() method, however this is probably better than the alternative of reimplementing and keeping up to date with Django's exception handling inside REST framework.

@lovelydinosaur lovelydinosaur added this to the 3.4.5 Release milestone Aug 18, 2016
@lovelydinosaur lovelydinosaur merged commit 382ea77 into master Aug 18, 2016
@lovelydinosaur lovelydinosaur deleted the improve-debug-error-handling branch August 18, 2016 13:42
@lovelydinosaur lovelydinosaur mentioned this pull request Aug 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants