How to get username in Django
<p>I need to get the username to show it in </p>

<pre><code>&lt;li&gt;
    &lt;a tabindex="-1" href="base_pages_profile.html"&gt;
       &lt;i class="si si-user pull-right"&gt;&lt;/i&gt;
            &lt;span class="badge badge-success pull-right"&gt;&lt;/span&gt;USERNAME
    &lt;/a&gt;
&lt;/li&gt;
</code></pre>

<p>I have tried using request.user.username and request.get_username and this does not work, is there any other way to this?</p>