request.user as dev vs anonymous user

I’ve built the backend of my project and am starting on the frontend.

For testing the server is at localhost:8000. While I am poking around not logged in I thought was an “anonymous user”. But I see that request.user gives my user name on the server computer, and I’m not anonymous. How do I simulate a user that goes to the site without signing in?

The reason for this is that Django will always remember your authentication state using session cookies. What does this mean? Once logged in and authenticated, even after closing the page, restarting the server, or rebooting your computer, Django will always log you back in, as session cookies persist.

What you can do is:
Clear session cookies from your browswer, use incognito mode which does not store session cookies or add a logout feature in the app URL.py file.

from django.contrib.auth import views as auth_views

urlpatterns = [ 
    path('logout/', auth_views.LogoutView.as_view(next_page="homepage"), name="logout"),
]

Thanks tahaqaiser, I didn’t realize that my superuser account in admin would show up as user when I was browsing the site. I haven’t created any “users” yet through the project website.