  
          if template_name:
              if isinstance(template_name, (list, tuple)):
                  template_name = ', '.join(template_name)
              raise TemplateDoesNotExist(template_name, tried=tried)
          else:
              raise TemplateDoesNotExist("No template names provided")
  
  
  def _engine_list(using=None):
 
</s> remove                 tried.extend(e.tried)
 </s> add                 chain.append(e) </s> remove         raise TemplateDoesNotExist(', '.join(template_name_list), tried=tried)
 </s> add         raise TemplateDoesNotExist(', '.join(template_name_list), chain=chain) </s> remove                 tried.extend(e.tried)
 </s> add                 chain.append(e) </s> remove             tried.extend(e.tried)
 </s> add             chain.append(e) </s> remove     raise TemplateDoesNotExist(template_name, tried=tried)
 </s> add     raise TemplateDoesNotExist(template_name, chain=chain)
            raise TemplateDoesNotExist(template_name, chain=chain)
  
          if template_name:
              if isinstance(template_name, (list, tuple)):
                  template_name = ', '.join(template_name)
            raise TemplateDoesNotExist(template_name, chain=chain)
          else:
              raise TemplateDoesNotExist("No template names provided")
  
  
  def _engine_list(using=None):
keep keep keep keep replace keep keep keep keep keep
 Fixed #24119, #24120 -- Formalized debug integration for template backends. 
django/template/loader.py