give permission eash user 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()