mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +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:
committed by
Carlton Gibson
parent
411cc0ae18
commit
68e33b347d
@@ -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
|
||||
~~~~~~~~~~~~
|
||||
|
||||
Reference in New Issue
Block a user