title: Use multiple block and views in django templates
body: <p>I am new to <code>django</code>, and I see that you could create <code>templates</code> that you could populate in <code>views</code>. 
  You could also create some basic.htm that everyone extends... </p>
  
  <p>Let say I have two pages: (django demo)</p>
  
  <ul>
  <li>List of all questions</li>
  <li>Detail of the question.</li>
  </ul>
  
  <p>Now I would like to create "one page" that have first view as sidebar and another as a "detail- right" view.</p>
  
  <p>I would like that on clicking on the list in sidebar change right vies. </p>
  
  <p>It would be nice, if I could use different views (inside views.py) for loading separate templates.</p>
  
  <p>I wish for base html would be something like this :</p>
  
  <pre><code>&lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"&gt;
      &lt;title&gt;Makro Zadravec&lt;/title&gt;
      {% load staticfiles %}
      &lt;link rel="stylesheet" type="text/css" href="{% static 'demo/css/bootstrap.min.css.css' %}" /&gt;
  &lt;/head&gt;
  &lt;body class="body" style="background-color: #f6f6f6"&gt;
      &lt;div&gt;
          &lt;h1&gt; This is title&lt;/h1&gt;
      &lt;/div&gt;
      &lt;div&gt;
          {% block sidebar %}
  
          {% endblock %}
      &lt;/div&gt;
      &lt;div&gt;
          {% block content %}
          {% endblock %}
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt; 
  </code></pre>
  
  <p>And then I would have template for blocks:</p>
  
  <ul>
  <li>content </li>
  <li>sidebar</li>
  </ul>
  
  <p>in separate views.</p>