7 lines
214 B
Python
7 lines
214 B
Python
from django.contrib.auth import views as auth_views
|
|
|
|
login = auth_views.LoginView.as_view(
|
|
template_name='lemonauth/login.html',
|
|
redirect_authenticated_user=True,
|
|
)
|
|
logout = auth_views.LogoutView.as_view()
|