django admin i view only AUTHENTICATION AND AUTHORIZATION 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: import login required
from django.contrib.auth.decorators import login_required