Fixed #32105 -- Added template paths as ExceptionReporter class attributes.

This allows replacement of the debugging templates without having to
copy-paste the `get_traceback_html` and `get_traceback_text` functions
into a subclass.

Thanks to Nick Pope for review.
This commit is contained in:
Aarni Koskela 2020-10-15 11:44:02 +02:00 committed by Carlton Gibson
parent 411cc0ae18
commit 68e33b347d
7 changed files with 50 additions and 3 deletions

View file

@ -188,7 +188,10 @@ Email
Error Reporting
~~~~~~~~~~~~~~~
* ...
* Custom :class:`~django.views.debug.ExceptionReporter` subclasses can now set
the :attr:`~django.views.debug.ExceptionReporter.html_template_path` and
:attr:`~django.views.debug.ExceptionReporter.text_template_path` class
attributes to override the templates used to render exception reports.
File Storage
~~~~~~~~~~~~