title: How can I get the username of the logged-in user in Django?
body: <p>How can I get information about the logged-in user in a Django application?</p>
  <p>For example:</p>
  <p>I need to know the username of the logged-in user to say who posted a Review:</p>
  <pre><code>&lt;form id='formulario' method='POST' action=''&gt;
      &lt;h2&gt;Publica tu tuit, {{ usuario.username.title }} &lt;/h2&gt;
      {% csrf_token %}
      {{formulario.as_p}}
      &lt;p&gt;&lt;input type='submit' value='Confirmar' /&gt;&lt;/p&gt;
  &lt;/form&gt;
  </code></pre>
  <p>In <code>usuario.username.title</code> I get the username, but in the template, I need to get that information from the view.</p>