Probably you want to create a custom admin login, in this article, we'll learn how to create a custom admin login by using the LoginView.
#loginView from django.contrib.auth.views import LoginView class AdminLogin(LoginView): template_name = 'LoginView_form.html'
in View.py, we've created AdminLogin by subclassing LoginView, and then we've defined template_name which is the template that will contain our login form.
#LoginView path('login/', AdminLogin.as_view(), name="login")
n our URLs, we'have added path for AdminLogin
in settings.py you should add login redirect URL, as the following code
LOGIN_REDIRECT_URL = 'home' # url redirecting after a successful authentication
go to /login in you browser you will see the login form if you login successful the browser will rediret to /home
English today is not an art to be mastered it's just a tool to use to get a result