1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Refs #32105 -- Moved ExceptionReporter template paths to properties.

Refs #32316.
This commit is contained in:
William Schwartz
2021-03-30 15:57:33 -05:00
committed by Mariusz Felisiak
parent db5b75f10f
commit 7248afe12f
3 changed files with 19 additions and 12 deletions

View File

@@ -323,17 +323,18 @@ Your custom reporter class needs to inherit from
.. versionadded:: 3.2
A :class:`pathlib.Path` representing the absolute filesystem path to a
template for rendering the HTML representation of the exception.
Defaults to the Django provided template.
Property that returns a :class:`pathlib.Path` representing the absolute
filesystem path to a template for rendering the HTML representation of
the exception. Defaults to the Django provided template.
.. attribute:: text_template_path
.. versionadded:: 3.2
A :class:`pathlib.Path` representing the absolute filesystem path to a
template for rendering the plain-text representation of the exception.
Defaults to the Django provided template.
Property that returns a :class:`pathlib.Path` representing the absolute
filesystem path to a template for rendering the plain-text
representation of the exception. Defaults to the Django provided
template.
.. method:: get_traceback_data()