title: How to show a category list made by generic views in multiple pages?
body: <p>I'm trying to build my own Blog app with Django 1.6. I've generated a category list by generic views like this:</p>
  
  <p><strong>urls.py</strong></p>
  
  <pre><code>url(r'^categories/?$', views.ListView.as_view(model=Category), name='categories'),
  </code></pre>
  
  <p><strong>category_list.html</strong></p>
  
  <pre><code>   &lt;h3&gt;Categories&lt;/h3&gt;
     {% for category in object_list %}
       &lt;ul&gt;
         &lt;li&gt;{{ category.title }}&lt;/li&gt;
       &lt;/ul&gt;
     {% endfor %}
  </code></pre>
  
  <p>all categories are now listed at <code>/categories</code>.</p>
  
  <p>My problem is when I add it to <code>base.html</code> or <code>index.html</code> file, output changes to <code>article.title</code> not <code>category.title</code> How can I add this Category list to other pages such as Index or Article?
  Here's my complete views.py file:</p>
  
  <p><strong>views.py</strong></p>
  
  <pre><code>from django.shortcuts import get_object_or_404, render
  from django.views.generic import ListView, DetailView
  
  from blog.models import Article, Category
  
  class IndexView(ListView):
      template_name = 'blog/index.html'
      context_object_name = 'latest_article_list'
  
      def get_queryset(self):
          return Article.objects.order_by('-pub_date')[:10]
  
  class ArticleView(DetailView):
      model = Article
      template_name = 'blog/article.html'
  </code></pre>