#25167: Provide option to disable ajax text/plain response in
technical_500_response
---------------------------------+------------------------------------
Reporter: thenewguy | Owner: nobody
Type: New feature | Status: new
Component: Error reporting | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+------------------------------------
Changes (by timgraham):
* needs_better_patch: => 0
* component: Uncategorized => Error reporting
* needs_tests: => 0
* version: 1.8 => master
* needs_docs: => 0
* type: Uncategorized => New feature
* stage: Unreviewed => Accepted
Comment:
I guess you use something like Chrome inspector which renders HTML just
fine? It would be a nice feature, but I doubt adding a setting will be a
popular solution.
There was [https://github.com/django/django/pull/4977#discussion_r34389179
an idea] to replace `settings.DEFAULT_EXCEPTION_REPORTER_FILTER` with a
`DEFAULT_EXCEPTION_REPORTER` setting:
Introduce `DEFAULT_EXCEPTION_REPORTER` settings to allow custom
`ExceptionReporter` class. To avoid new setting, it can actually replace
original `DEFAULT_EXCEPTION_REPORTER_FILTER` setting either by merging
`ExceptionReporterFilter` class into `ExceptionReporter` or defining
filter as a class attribute of the `ExceptionReporter`. I don't quite see
a need to have the implementation split into two classes in this case.
Developers could further profit from this change by getting control over
the context and templates of the error reports.
Implementing that would likely make allow customizing this behavior easy.
--
Ticket URL: <https://code.djangoproject.com/ticket/25167#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/067.7613f69c119ed18e0ee836d84d3ad5ca%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.