title: Django: Key 'urls' not found in <QueryDict: {}>
body: <p>what I want to do is to set a parameter in the model.py through the template. </p>
  
  <p>There is a text box on the main_index and I want to click "submit" to POST it to the result page. However the result page cannot receive the POST, that is, is always prints "Not Post!"</p>
  
  <p>Here is the view:</p>
  
  <pre><code>def main_index(request):
      c = {}
      c.update(csrf(request))
      cmodel = InfoController.objects.all()
      print "I am at index"
      return render_to_response('infoRetriever/index.html', c)
  
  def results(request):
      if not request.method == 'POST':
          print "Not Post!"
      c = {}
      c.update(csrf(request))
      cmodel = InfoController()
      metaUrl = request.POST['urls']
      firstList = cmodel.controller(metaUrl)
      print "I am at result"
      for item in firstList:
          print "items: ", item
      return render_to_response('infoRetriever/results.html', { 'firstList': firstList})
  </code></pre>
  
  <p>template:</p>
  
  <pre><code>&lt;form action="{% url 'infoRetriever:request_page' %}" method="POST"&gt;
  {% csrf_token %}
      &lt;input type="text" name="urls" size="60" /&gt;
      &lt;input id="submit" type="submit" value="Click" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Thank you very much.</p>