      def __init__(self, template):
          self.template = template
  
      def render(self, context=None, request=None):
          if context is None:
              context = {}
          if request is not None:
 
</s> remove     def __init__(self, msg, tried=None):
 </s> add     def __init__(self, msg, tried=None, backend=None, chain=None):
        self.backend = backend </s> remove         raise TemplateDoesNotExist(', '.join(template_name_list), tried=tried)
 </s> add         raise TemplateDoesNotExist(', '.join(template_name_list), chain=chain) </s> remove             raise TemplateDoesNotExist(template_name, tried=tried)
 </s> add             raise TemplateDoesNotExist(template_name, chain=chain)
        self.origin = Origin(
            name=template.filename, template_name=template.name,
        )
      def __init__(self, template):
          self.template = template
        self.origin = Origin(
            name=template.filename, template_name=template.name,
        )
  
      def render(self, context=None, request=None):
          if context is None:
              context = {}
          if request is not None:
keep add keep keep keep keep keep
 Fixed #24119, #24120 -- Formalized debug integration for template backends. 
django/template/backends/jinja2.py