auth_views django redirect users who are not authenticated code example
Example: login views django template passing
path('accounts/login/', auth_views.LoginView.as_view(template_name='myapp/login.html')),
path('accounts/login/', auth_views.LoginView.as_view(template_name='myapp/login.html')),