title: Django Year/Month archive page with generic views
body: <p>Looking to make a generic view archive page by month and year.
  Like this:</p>
  
  <pre><code>2011 - January March
  2010 - October December
  </code></pre>
  
  <p>What I am getting:</p>
  
  <pre><code>2011 - January January
  2010 - January January
  </code></pre>
  
  <p>Is this possible? Here are the views and templates.</p>
  
  <p>view</p>
  
  <pre><code>def track_archive(request):
      return date_based.archive_index(
          request,
          date_field='date',
          queryset=Track.objects.all(),
    )
  track_archive.__doc__ = date_based.archive_index.__doc__
  
  template
  {% for year in date_list %}
          &lt;a href="{% url track_archive %}{{ year|date:"Y" }}/"&gt;{{ year|date:"Y" }}&lt;/a&gt; archives:
          {% for month in date_list %}
              &lt;a href="{% url track_archive %}{{ year|date:"Y" }}/{{ month|date:"b" }}/"&gt;{{ month|date:"F" }}&lt;/a&gt;
          {% endfor %}
      {% endfor %}
  </code></pre>