from django.contrib.auth.views import LoginView as DjangoLoginView, LogoutView from django.urls import path class LoginView(DjangoLoginView): template_name = "custom_auth/login.html" redirect_authenticated_user = True