title: How to extend a base.html using two different files?
body: <p>I'm writing an application in which user can choose one of several tools for data analysis and open it in a panel on main page. Is it possible to use django "extends" and have each tool defined in different file?</p>
  
  <p>The minimal example of what im strugling with would be like this:</p>
  
  <p><em>base.html</em></p>
  
  <pre><code>  &lt;div&gt;
    {% block left_panel %}
    left block
    {% endblock content%}
    &lt;/div&gt;
    &lt;div&gt;
      {% block right_panel %}
      right block
      {% endblock %}
    &lt;/div&gt;
  </code></pre>
  
  <p>and sample left_panel and right_panel tools:</p>
  
  <p><em>left1.html</em></p>
  
  <pre><code>{% extends "base.html" %}
  {% block left_panel %}
  &lt;p&gt;TEST left 1&lt;/p&gt;
  {% endblock %}
  </code></pre>
  
  <p><em>right1.html</em></p>
  
  <pre><code>{% extends "base.html" %}
  {% block right_panel %}
  &lt;p&gt;TEST right 1&lt;/p&gt;
  {% endblock %}
  </code></pre>
  
  <p>Is there a way to render the <em>base.html</em> with both blocks overwriten?</p>