title: Django got an unexpected keyword argument
body: <p>I'm trying to create an archive so I pass to the view the arguments year and month.</p>
  <p>However, I get an error with the code below and I can't figure out what it means and how to solve it:</p>
  <pre><code>Exception Type: TypeError
  Exception Value:    archive() got an unexpected keyword argument 'year_id'
  Exception Location: /usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py in get_response, line 115
  </code></pre>
  <p>What can be wrong?</p>
  <p><strong>views.py</strong></p>
  <pre><code>    # loop over years and months
  def mkmonth_lst():
      if not Post.objects.count():
          return []
      # set up vars
      year, month = time.localtime()[:2]
      first = Post.objects.order_by(&quot;created&quot;)[0]
      fyear = first.created.year
      fmonth = first.created.month
      months = []
  
      # loop over years and months
      for y in range(year, fyear-1, -1):
          start, end = 12, 0
          if y == year: start = month
          if y == fyear: end = fmonth-1
  
          for m in range(start, end, -1):
              months.append((y, m, month_name[m]))
  
      return months
  
  def archive(request, year, month):
      posts = Post.objects.filter(created__year=year, created__month=month)
      context = {'PostList': posts, 'Months': mkmonth_lst()}
  
      return(render, 'archives.html', context)
  </code></pre>
  <p><strong>urls.py</strong></p>
  <pre><code>url(r'^archives/(?P&lt;year_id&gt;\d+)/(?P&lt;month_id&gt;\d+)$', views.archive, name='archives'),
  </code></pre>
  <p>Update:</p>
  <p><strong>models.py</strong></p>
  <pre><code>class Post(models.Model):
      title = models.CharField(max_length=100)
      body = models.TextField()
      created = models.DateTimeField(auto_now_add=True)
      url = models.URLField(null=True, blank=True)
      video = models.FileField(upload_to = 'video', verbose_name = 'Video', null=True, blank=True)
      picture = models.ImageField(upload_to = 'post', verbose_name = 'Picture')
      tags = TaggableManager()
  
      def __unicode__(self):
          return self.title
  </code></pre>
  <p>Template</p>
  <pre><code>&lt;h3&gt;Archivo&lt;/h3&gt;
    &lt;p&gt;
      {% for month in months %}
          {% ifchanged month.0 %} {{ month.0 }} &lt;br /&gt; {% endifchanged %}
              &lt;a href=&quot;/blog/archives/{{month.0}}/{{month.1}}&quot;&gt;{{ month.2 }}&lt;/a&gt; &lt;br /&gt;
      {% endfor %}
    &lt;/p&gt;
  </code></pre>
  <p>Update 2: error</p>
  <pre><code>usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py in get_response
              response = middleware_method(request, response) ...
  /usr/local/lib/python2.7/dist-packages/django/middleware/common.py in process_response
      if response.status_code == 404: ...
  
  
  Request Method: GET
  Request URL:    http://127.0.0.1:8000/blog/archives/2014/1
  Django Version: 1.5
  Exception Type: AttributeError
  Exception Value:    
  'tuple' object has no attribute 'status_code'
  Exception Location: /usr/local/lib/python2.7/dist-packages/django/middleware/common.py   in process_response, line 106
  Python Executable:  /usr/bin/python
  Python Version: 2.7.3
  Python Path:    
  ['/home/fernando/develop/blogmanage',
  '/usr/local/lib/python2.7/dist-packages/django_mptt-0.6.0-py2.7.egg',
  '/usr/local/lib/python2.7/dist-packages',
  '/usr/lib/python2.7',
  '/usr/lib/python2.7/plat-linux2',
  '/usr/lib/python2.7/lib-tk',
  '/usr/lib/python2.7/lib-old',
  '/usr/lib/python2.7/lib-dynload',
  '/usr/local/lib/python2.7/dist-packages',
  '/usr/lib/python2.7/dist-packages',
  '/usr/lib/python2.7/dist-packages/PIL',
  '/usr/lib/python2.7/dist-packages/gst-0.10',
  '/usr/lib/python2.7/dist-packages/gtk-2.0',
  '/usr/lib/pymodules/python2.7',
  '/usr/lib/python2.7/dist-packages/ubuntu-sso-client',
  '/usr/lib/python2.7/dist-packages/ubuntuone-client',
  '/usr/lib/python2.7/dist-packages/ubuntuone-control-panel',
  '/usr/lib/python2.7/dist-packages/ubuntuone-couch',
  '/usr/lib/python2.7/dist-packages/ubuntuone-installer',
  '/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol']
  Server time:    Wed, 29 Jan 2014 21:09:56 +0100
  </code></pre>