how to create staff account in python manager in 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()