django auth_views code example
Example 1: import auth views
from django.contrib.auth.views import LoginView, LogoutView
Example 2: how to create staff account in django
user = User.objects.create_user('john', '[email protected]', 'johnpassword')
user.is_staff=True
user.save()