from django.contrib.auth import views as auth_views code example Example: import auth views from django.contrib.auth.views import LoginView, LogoutView