After a successful login, Django needs to know where to send the user. You can define this in your settings.py file.
Add LOGIN_REDIRECT_URL = 'home' to redirect users to the homepage. After a successful login, Django needs to know
The Django authentication system handles both and authorization . After a successful login