title: django: side menu template visible everywhere
body: <p>I need to create a side menu in my django admin that should appear in all pages. Ideally my template should be a generic navigation.html file containing this code and parsing app_list param (the same that is used into index.html template populating the dashboard):</p>
  
  <pre><code>{% block side_menu %}
  {% if app_list %}
      {% for app in app_list %}
          &lt;ul class="sidebar-menu app-{{ app.app_label }} module"&gt;
           &lt;li class="treeview"&gt;
             &lt;a href="#"&gt;
              &lt;i class="fa fa-dashboard"&gt;&lt;/i&gt; &lt;span&gt;{{ app.name | truncatechars:"25" }}&lt;/span&gt;
              &lt;span class="pull-right-container"&gt;
                &lt;i class="fa fa-angle-left pull-right"&gt;&lt;/i&gt;
              &lt;/span&gt;
            &lt;/a&gt;
  
          {% for model in app.models %}
          &lt;ul class="treeview-menu"&gt;
              {% if model.admin_url %}
                  &lt;li&gt;&lt;a href="{{ model.admin_url }}"&gt;&lt;strong&gt;{{ model.name }}&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;
              {% else %}
                  &lt;li&gt;{{ model.name }}&lt;/li&gt;
              {% endif %}
  
              {% if model.add_url %}
                  &lt;li&gt;&lt;a href="{{ model.add_url }}"&gt;&lt;i class="fa fa-plus"&gt;&lt;/i&gt; {% trans 'Add' %}&lt;/a&gt;&lt;/li&gt;
              {% else %}
                  &lt;td&gt;&amp;nbsp;&lt;/td&gt;
              {% endif %}
  
              {% if model.admin_url %}
                  &lt;li&gt;&lt;a href="{{ model.admin_url }}"&gt;&lt;i class="fa fa-pencil-square-o"&gt;&lt;/i&gt; {% trans 'Change' %}&lt;/a&gt;&lt;/li&gt;
              {% else %}
                  &lt;td&gt;&amp;nbsp;&lt;/td&gt;
              {% endif %}
          &lt;/ul&gt;
          {% endfor %}
          &lt;/li&gt;
        &lt;/ul&gt;
      {% endfor %}
  {% else %}
      &lt;p&gt;{% trans "You don't have permission to edit anything." %}&lt;/p&gt;
  {% endif %}
  {% endblock side_menu %}
  </code></pre>
  
  <p>My questions are:</p>
  
  <p>1) how can I include my new navigations.html template in all pages?</p>
  
  <p>2) how can I pass to this template the app_list dictionary?</p>
  
  <p>Thanx in advance</p>