user not logged in in django code example
Example 1: how to create staff account in django
user = User.objects.create_user('john', '[email protected]', 'johnpassword')
user.is_staff=True
user.save()
Example 2: login views django template passing
path('accounts/login/', auth_views.LoginView.as_view(template_name='myapp/login.html')),