title: Django exists() versus DoesNotExist
body: <p>I have some questions about django <code>exists()</code> and <code>DoesNotExist</code> exception. </p>
  
  <p>Example code:</p>
  
  <pre><code>id = 1
  # first
  if User.objects.get(pk=id).exists():
      # my logic
      pass
  # second
  try:
      User.objects.get(pk=id)
      # my logic
      pass
  except User.DoesNotExist:
      return 0
  </code></pre>
  
  <p>I often use <code>get()</code> method. Which practice is better? Which code is better? The first or second?</p>