title: How to get user object from Django DRF when logged in with TemplateView?
body: <p>I am begginer in Djnago and logged in to my app with this code:</p>
  <pre><code>class LoginHandler(TemplateView):
      def get(self, request, *args, **kwargs):
          user = authenticate(request, email='jaxen@gmail.com', password='123456')
          login(request, user)
          return render(request, &quot;login.html&quot;, context={})
  </code></pre>
  <p>But i need to detect logged in user in other app that use DRF.<br />
  I don't know how fetch the user.<br />
  I tried this code but not worked:</p>
  <pre><code>class OtherAppHandler(APIView): 
      def post(self, request):
          print(f&quot;user: {request.user}&quot;)
          ...
  </code></pre>
  <p>Thank you.</p>