class TemplateDoesNotExist
from django.template.exceptions import TemplateDoesNotExist
The exception used when a template does not exist. Optional arguments: backend The template backend class used when raising this exception. tried A list of sources that were tried when finding the template. This is formatted as a list of tuples containing (origin, status), where origin is an Origin object or duck type and status is a string with the reason the template wasn't found. chain A list of intermediate TemplateDoesNotExist exceptions. This is used to encapsulate multiple exceptions when loading templates from multiple engines.
Ancestors (MRO)
- builtins.object
- builtins.BaseException
- builtins.Exception
- django.template.exceptions.TemplateDoesNotExist
Attribute | Type | Defined in |
---|---|---|
__cause__ |
getset_descriptor
|
builtins.BaseException |
__context__ |
getset_descriptor
|
builtins.BaseException |
__dict__ |
getset_descriptor
|
builtins.BaseException |
__suppress_context__ |
member_descriptor
|
builtins.BaseException |
__traceback__ |
getset_descriptor
|
builtins.BaseException |
args |
getset_descriptor
|
builtins.BaseException |
__weakref__ |
getset_descriptor
|
django.template.exceptions.TemplateDoesNotExist |
def __delattr__(self, name)
builtins.BaseException
Implement delattr(self, name).
def __getattribute__(self, name)
builtins.BaseException
Return getattr(self, name).
def __init__(self, msg, tried=None, backend=None, chain=None)
django.template.exceptions.TemplateDoesNotExist
django.template.exceptions.TemplateDoesNotExist
Initialize self. See help(type(self)) for accurate signature.
def __init__(self, msg, tried=None, backend=None, chain=None):
self.backend = backend
if tried is None:
tried = []
self.tried = tried
if chain is None:
chain = []
self.chain = chain
super().__init__(msg)
builtins.Exception
Initialize self. See help(type(self)) for accurate signature.
builtins.BaseException
Initialize self. See help(type(self)) for accurate signature.
def __new__(type, *args, **kwargs)
builtins.Exception
builtins.Exception
Create and return a new object. See help(type) for accurate signature.
builtins.BaseException
Create and return a new object. See help(type) for accurate signature.
def __reduce__(self)
builtins.BaseException
Helper for pickle.
def __repr__(self)
builtins.BaseException
Return repr(self).
def __setattr__(self, name, value)
builtins.BaseException
Implement setattr(self, name, value).
def __setstate__(self)
builtins.BaseException
def __str__(self)
builtins.BaseException
Return str(self).
def with_traceback(self)
builtins.BaseException
Exception.with_traceback(tb) -- set self.__traceback__ to tb and return self.