title: Refer to multiple Models in View/Template in Django
body: <p>I'm making my first steps with Python/Django and wrote an example application with multiple Django apps in one Django project. Now I added another app called "dashboard" where I'd like to display data from different apps. At the moment I still use this simple class-based generic view, which shows the entries of my little contacts-App on the dashboard:</p>
  
  <p>views.py:</p>
  
  <pre><code>from django.views.generic import ListView
  from contacts.models import Contact
  
  class ListDashboardView(ListView):
       model = Contact
       template_name = 'dashboard.html'
  </code></pre>
  
  <p>urls.py:</p>
  
  <pre><code>url(r'^$', dashboard.views.ListDashboardView.as_view(),
      name='dashboard-list',),
  </code></pre>
  
  <p>In dashboard.html I do:</p>
  
  <pre><code>&lt;ul&gt;
    {% for contact in object_list %}
      &lt;li class="contact"&gt;{{ contact }}&lt;/li&gt;
    {% endfor %}
  &lt;/ul&gt;
  </code></pre>
  
  <p>Can anybody explain to a beginner how to access multiple models in my template? I'd like to show not only the contacts from my 'contacts' app but also data from other apps such as my 'inventory' app and a third app.</p>
  
  <p>I know, I have to import it:</p>
  
  <pre><code>from inventory.models import Asset
  from polls.models import Poll
  </code></pre>
  
  <p>But what has to be done to pass all this data to my single template using a view? And how can I access that data in my template?</p>
  
  <p>The solution may be in <a href="https://stackoverflow.com/questions/12187751/django-pass-multiple-models-to-one-template">Django Pass Multiple Models to one Template</a> but I must confess that I don't really understand it.</p>