Django 5.1 will introduce the new LoginRequiredMiddleware, encouraging you to make your applications more secure by default.
Check out my Python Django course: https://dub.sh/Django5-1
Find me on Twitter: https://twitter.com/dennisivy11
Find me on LinkedIn: https://www.linkedin.com/in/dennis-ivanov
Django 5.1 release notes: https://docs.djangoproject.com/en/dev/releases/5.1/
django-denied package by @MattLayman : https://github.com/mblayman/django-denied