title: What to do when Django query returns none? It gives me error
body: <pre><code>to_friend = User.objects.filter(username=friend_q)[0:1]
  </code></pre>
  
  <p>If 'friend_q' is NOT inside the User.username...it will give error.
  What is the recommended tactic?</p>
  
  <p>Thank you</p>