title: What does request.user refer to in Django?
body: <p>I have confusion regarding what does <strong>request.user</strong> refers to in Django?
  Does it refer to <strong>username</strong> field in the <strong>auth_user</strong> table or does it refer to User model instance?</p>
  
  <p>I had this doubt because I was not able to access email field in the template using <code>{{request.user.username}}</code> or <code>{{user.username}}</code>.</p>
  
  <p>So instead I did following in views file:</p>
  
  <pre><code>userr = User.objects.get(username=request.user)
  </code></pre>
  
  <p>And passed <code>userr</code> to the template and accessed email field as <code>{{ userr.email }}</code>.</p>
  
  <p>Although its working but I wanted to have some clarity about it.</p>