expalert/custom_auth/views.py

7 lines
227 B
Python
Raw Normal View History

2023-12-04 15:09:40 +00:00
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