I was seeing file django/views/debug.py. Based on it, on ajax request
exception django responds in plain/text format. But when you are debugging
API calls in something like postman or soap-ui, it's prettier to see json,
because it has better viewer.
Propose to change plain/text response to application/json. if client send
'Accept: application/json'.
--
Ticket URL: <https://code.djangoproject.com/ticket/28510>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by Ivan Chernoff):
Made simple implementation in PR:
https://github.com/django/django/pull/8947
--
Ticket URL: <https://code.djangoproject.com/ticket/28510#comment:1>
* needs_better_patch: 0 => 1
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/28510#comment:2>
* component: Utilities => Error reporting
--
Ticket URL: <https://code.djangoproject.com/ticket/28510#comment:3>
* status: assigned => closed
* resolution: => wontfix
Comment:
The reporter has withdrawn the ticket, "I don't think this is a needed one
after all."
--
Ticket URL: <https://code.djangoproject.com/ticket/28510#comment:4>