title: django post checkbox data
body: <p>I'm using a checkbox form in my template and in my view im trying to check if the box has been checked or not
  I have the following code in my view:</p>
  
  <pre><code>if request.POST['check'] == True:
  </code></pre>
  
  <p>but then it throws an error if it is unchecked. How do i check if there is a value 'check' in my post data? </p>
  
  <p>Thanks</p>