Decorator login_not_required in Django 5.1 - Pros and Cons

Today, I accidentally came across a very interesting feature that was added in Django 5.1 . Developers have added the login_not_required decorator, which should be used in conjunction with django.contrib.auth.middleware.LoginRequiredMiddleware . The appearance of this decorator intrigued me because redirection to pages after authentication doesn't work as well as I would like. Here, you get a…