title: Redirect URL with Argument in urls.py in Django 1.6.5
body: <p>I recently switched from PHP to Django. My old site in PHP had Disqus integrated, when I migrated to new site, my blog urls changed from <b><em>/blog/&lt;year&gt;/&lt;month&gt;/&lt;slug&gt;</em></b> to <b><em>/blog/&lt;slug&gt;</em></b></p>
  
  <p>All new comments are automatically taking the new url, but there are a lot of old links that are still in the form of <b><em>&lt;year&gt;/&lt;month&gt;/&lt;slug&gt;</em></b></p>
  
  <p>Now what I want it to redirect all <b><em>/blog/&lt;year&gt;/&lt;month&gt;/&lt;slug&gt;</em></b> to <b><em>/blog/&lt;slug&gt;</em></b></p>
  
  <p>I tried the following:</p>
  
  <pre><code>url(r'^(?P&lt;year&gt;\d{4})/(?P&lt;month&gt;\d{1,2})/(?P&lt;slug&gt;[^\.]+)', RedirectView.as_view(url=reverse_lazy('view_blog_post'))),
  url(r'^(?P&lt;slug&gt;[^\.]+)', 'blog.views.view_post', name='view_blog_post'),
  </code></pre>
  
  <p>This gives me the following errors:</p>
  
  <pre><code>view_post() got an unexpected keyword argument 'year'
  </code></pre>
  
  <p>which seems obvious because my view only takes slug as an argument. I don't want to write another view to incorporate this change because it is temporary.</p>
  
  <p>Please help me find a solution on this.</p>
  
  <p>Regards.</p>