title: How do I pass parameters via url in django?
body: <p>I am trying to pass a parameter to my view, but I keep getting this error:</p>
  
  <pre><code>NoReverseMatch at /pay/how
  
  Reverse for 'pay_summary' with arguments '(False,)' and keyword arguments '{}' not found. 1 pattern(s) tried: ['pay/summary/$']
  </code></pre>
  
  <p><code>/pay/how</code> is the current view that I'm at. (that is the current template that that view is returning).</p>
  
  <p>urls.py</p>
  
  <pre><code>url(r'^pay/summary/$', views.pay_summary, name='pay_summary')
  </code></pre>
  
  <p>views.py</p>
  
  <pre><code>def pay_summary(req, option):
      if option:
          #do something
      else:
          #do something else
      ....
  </code></pre>
  
  <p>template</p>
  
  <pre><code>&lt;a href="{% url 'pay_summary' False %}"&gt;my link&lt;/a&gt;
  </code></pre>
  
  <p><strong>EDIT</strong></p>
  
  <p>I want the view should accept a POST request, not GET.</p>