--
Ticket URL: <https://code.djangoproject.com/ticket/27785>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* stage: Unreviewed => Accepted
Comment:
I wonder if django rest framework does anything related that could be
worth borrowing from.
--
Ticket URL: <https://code.djangoproject.com/ticket/27785#comment:1>
* status: new => closed
* resolution: => duplicate
Comment:
#30752 (Django 3.1) allows providing a custom ExceptionReporter sublcass.
That will be the place to add the logic you need.
Maybe we could pull something in to do it by default if you come up with a
good solution now that it's customizable, but we have X tickets for Can we
add A, or B, or C — so my bias is towards leaving the default as we have
it now, rather than trying to accommodate every possible extension.
--
Ticket URL: <https://code.djangoproject.com/ticket/27785#comment:2>
Comment (by Claude Paroz):
I still think that Django could do better by default here, but fair, let's
keep it closed until I (or someone else) come with some possible patch.
--
Ticket URL: <https://code.djangoproject.com/ticket/27785#comment:3>
Comment (by Carlton Gibson):
Agreed. Alwasy happy to look at these things if there’s a patch in play.
:)
--
Ticket URL: <https://code.djangoproject.com/ticket/27785#comment:4>