title: How to send POST data to a reversed url
body: <p>I have <code>HttpResponseRedirect()</code> function which constructs the required url:</p>
  
  <p>my <code>create</code> view:</p>
  
  <pre><code>def create(request):
      entry = Char_field(field=request.POST['record'])
      entry.save()
      return HttpResponseRedirect(reverse('db:index_page',kwargs={'redirected':'true'}))
  </code></pre>
  
  <p>the view which the <code>HttpResponseRedirect()</code> redirects to is:</p>
  
  <pre><code>def index(request):
      redirected = False
      template= 'app/index.html'
      try:
          if request.POST['redirected'] is 'true':
              redirected = True
      except:
          pass
      return render(request,template,{'redirected':redirected})
  </code></pre>
  
  <p>However it returns an error:</p>
  
  <pre><code>NoReverseMatch at /app/create/
  Reverse for 'index_page' with arguments '()' and keyword arguments '{'redirected': 'true'}' not found.
  </code></pre>
  
  <h1>urls.py:</h1>
  
  <pre><code>urlpatterns = patterns('',
      url(r'^$',views.index,name='index_page'),
      url(r'^get_record/$',views.get_record,name='get_record'),
      url(r'^create/$',views.create_html,name='create_path'),
      url(r'^add/$',views.create,name='add_record')
  )
  </code></pre>
  
  <p>Why is this so and Is it possible send <code>POST</code> data to the <code>index_page</code> view through the <code>reverse()</code> function?</p>