allow accesss to pages based on uer type django code example
Example: how to create staff account in django
user = User.objects.create_user('john', '[email protected]', 'johnpassword')
user.is_staff=True
user.save()
user = User.objects.create_user('john', '[email protected]', 'johnpassword')
user.is_staff=True
user.save()