I want to create a helper screen that can create a bunch of Django auth users on my site and have those accounts setup the same exact way as if they were done one by one through the Django auth GUI signup. What methods from Django auth would I have to use in my view to accomplish this?
Share
To create users you can use the method create_user from the UserManager:
Then you can set is as staff
new_user.is_staff = Trueor add permissionsnew_user.permissions.add(permission).Check this link for more information.