      <h2>Template-loader postmortem</h2>
      {% if postmortem %}
          <p class="append-bottom">Django tried loading these templates, in this order:</p>
          {% for entry in postmortem %}
              <p class="postmortem-section">Using engine <code>{{ entry.engine.name }}</code>:</p>
              <ul>
                  {% if entry.tried %}
                      {% for attempt in entry.tried %}
                          <li><code>{{ attempt.0.loader_name }}</code>: {{ attempt.0.name }} ({{ attempt.1 }})</li>
                      {% endfor %}
 
</s> remove Using engine {{ entry.engine.name }}:
 </s> add Using engine {{ entry.backend.name }}: </s> remove Using engine {{ entry.engine.name }}:
 </s> add Using engine {{ entry.backend.name }}: </s> remove             postmortem = []

            # TODO: add support for multiple template engines (#24120).
            # TemplateDoesNotExist should carry all the information, including
            # the backend, rather than looping through engines.all.
            for engine in engines.all():
                if hasattr(engine, 'engine'):
                    e = engine.engine
                else:
                    e = engine

                postmortem.append(dict(
                    engine=engine,
                    tried=[
                        entry for entry in self.exc_value.tried if
                        entry[0].loader.engine == e
                    ],
                ))
            self.postmortem = postmortem
 </s> add             self.postmortem = self.exc_value.chain or [self.exc_value] </s> remove     tried = []
 </s> add     chain = [] </s> remove     tried = []
 </s> add     chain = []
            <p class="postmortem-section">Using engine <code>{{ entry.backend.name }}</code>:</p>
      <h2>Template-loader postmortem</h2>
      {% if postmortem %}
          <p class="append-bottom">Django tried loading these templates, in this order:</p>
          {% for entry in postmortem %}
            <p class="postmortem-section">Using engine <code>{{ entry.backend.name }}</code>:</p>
              <ul>
                  {% if entry.tried %}
                      {% for attempt in entry.tried %}
                          <li><code>{{ attempt.0.loader_name }}</code>: {{ attempt.0.name }} ({{ attempt.1 }})</li>
                      {% endfor %}
keep keep keep keep replace keep keep keep keep keep
 Fixed #24119, #24120 -- Formalized debug integration for template backends. 
django/views/debug.py