I am logged in (I presume) so why stil a log in

I am logged and I presume I am logged because I am redirected to accounts/profile which I presume would not happen if I was not successfully logged in. On the profile page at accounts/profile at the top the Django Rest Framework is still showing a Log in link and not my user name. So am I logged in or not and how can I check? Why am I being redirected if I am not being logged in?

The simplest way I can think of to demonstrate whether or not you’re logged in is to display request.user.username somewhere in your page.

All your other questions depend upon different specific items within your code, such as whether or not you’re using something like the login_required decorator on your function-based views or the LoginRequiredMixin in class-based views.