django form login code code example
Example 1: loginrequiredmixin
from django.contrib.auth.mixins import LoginRequiredMixin
LOGIN_URL = 'your_url'
Example 2: login views django template passing
path('accounts/login/', auth_views.LoginView.as_view(template_name='myapp/login.html')),