title: Django redirect with kwarg
body: <p>I am new to python and django and i have a question regarding the redirect function.</p>
  <p>This is a reduced version of my views.py file.</p>
  <pre><code>def page_index(request, error_message=''):
      print error_message
  
  def add_page(request):
      return redirect('page_index') # this work fine
      return redirect('page_index', error_message='test') # this does not work
  </code></pre>
  <p>And here is a short version of my urls.py</p>
  <pre><code>urlpatterns = patterns(
      'x.views',
      url(r'^$', 'page_index', {'error_message': 't'}, name='page_index'),
      url(r'^add/$', 'add_page', name='add_page'),
  )
  </code></pre>
  <p>When i try redirecting to page_index without the keyword argument everything works fine, but when i use the kwag i get the following error message:</p>
  <blockquote>
  <p>NoReverseMatch at /pages/add/</p>
  <p>Reverse for 'page_index' with arguments '()' and keyword arguments '{'error_message': 'test'}' not found.</p>
  </blockquote>
  <p>What am i doing wrong?</p>