title: How to fetch data of the request user in Django?
body: <p>I am creating a profile page, and need to fetch the <code>id</code> of the requesting user, so I can then loop it's information.</p>
  
  <p>I am using this view:</p>
  
  <pre><code>def profile(request):  
      if request.user.is_authenticated:
          user = request.user
          us = User.objects.get(username=user)
          context = { 'us': us }
      return render(request, context, "frontend/profile.html")
  </code></pre>
  
  <p>And the path:</p>
  
  <pre><code>path('perfil/', views.profile, name="profile")
  </code></pre>
  
  <p>But when I try access the page I get the following error: </p>
  
  <pre><code>join() argument must be str, bytes, or os.PathLike object, not 'dict'
  </code></pre>