title: How to modularize templates in django?
body: <h1>base.html</h1>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;head&gt;
          {% block head %}
          {% endblock %}
      &lt;/head&gt;
      &lt;body&gt;
          {% block body %}
          {% endblock %}
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <h1>head.html</h1>
  
  <pre><code>&lt;title&gt;Example&lt;/title&gt;
  </code></pre>
  
  <h1>body.html</h1>
  
  <pre><code>&lt;h1&gt;Example Django&lt;/h1&gt;
  </code></pre>
  
  <p>Using django, you can render the template "base.html" but replace the blocks "head" and "body", respectively, by templates "head.html" and "body.html"?</p>