mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
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:
parent
411cc0ae18
commit
68e33b347d
7 changed files with 50 additions and 3 deletions
|
@ -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
|
||||
~~~~~~~~~~~~
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue