title: Checking for content in Django request.POST
body: <p>I am accepting data via request.POST like this:</p>
  
  <pre><code>if request.method == 'POST': 
      l = Location() 
      data = l.getGeoPoints(request.POST) 
      appid = settings.GOOGLE_API_KEY 
  
      return render_to_response('map.html',  
                                 {'data': data, 'appid': appid}, 
                                 context_instance=RequestContext(request)) 
  </code></pre>
  
  <p>It accepts data from a bunch of text input boxes called <strong>form-0-location</strong> all the way up to <strong>form-5-location</strong>.</p>
  
  <p>What I want to add in is a check to make sure that request.POST contains data in any of those input fields.  I think my problem is that I do not know the correct terminology for describing this in Django. </p>
  
  <p>I know how to do it in PHP: look inside $_POST for at least one of those fields to not be empty, but I can't seem to find the right answer via searching for google.</p>
  
  <p>If I don't find any data in those input fields, I want to redirect the user back to the main page.</p>