TemplateDoesNotExist
The exception used when a template does not exist.
Attributes
| Attribute | Type | Description |
|---|---|---|
| backend | class = null | The template backend class used when raising this exception. |
| tried | list = [] | A list of sources that were tried when finding the template, formatted as a list of (origin, status) tuples. |
| chain | list = [] | A list of intermediate TemplateDoesNotExist exceptions used to encapsulate multiple exceptions when loading templates from multiple engines. |
Constructor
Signature
def TemplateDoesNotExist(
msg: string,
tried: list = None,
backend: object = None,
chain: list = None
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| msg | string | The error message describing the missing template. |
| tried | list = None | A list of (origin, status) tuples representing sources that were searched. |
| backend | object = None | The template backend class that raised the exception. |
| chain | list = None | A list of intermediate TemplateDoesNotExist exceptions from multiple engines. |
Signature
def TemplateDoesNotExist(
msg: string,
tried: list,
backend: object,
chain: list
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| msg | string | The error message describing the template lookup failure. |
| tried | list | A list of (origin, status) tuples representing the sources searched and the specific reasons for failure at each location. |
| backend | object | The template backend instance or class that was active when the exception was raised. |
| chain | list | A list of underlying TemplateDoesNotExist exceptions encountered when attempting to load templates from multiple engines. |