Answers for "auth views django"

4

loginrequiredmixin

from django.contrib.auth.mixins import LoginRequiredMixin

LOGIN_URL = 'your_url'
Posted by: Guest on October-18-2020
0

login views django template passing

path('accounts/login/', auth_views.LoginView.as_view(template_name='myapp/login.html')),
Posted by: Guest on September-29-2020

Python Answers by Framework

Browse Popular Code Answers by Language