[Answered ]-Django Authorization Token returns AnonymousUser

1👍

Django assigns ‘AnonymousUser’ to request.user whenever the user isn’t logged in, if you logged into you Django admin, you’re logged in to the site. So that would be why you’re getting the correct user in that instance.

Leave a comment