title: Django request get parameters
body: <p>In a Django request I have the following:</p>
  
  <pre><code>POST:&lt;QueryDict: {u'section': [u'39'], u'MAINS': [u'137']}&gt;
  </code></pre>
  
  <p>How do I get the values of <code>section</code> and <code>MAINS</code>?</p>
  
  <pre><code>if request.method == 'GET':
      qd = request.GET
  elif request.method == 'POST':
      qd = request.POST
  
  section_id = qd.__getitem__('section') or getlist....
  </code></pre>