-
Notifications
You must be signed in to change notification settings - Fork 787
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot create superuser from the command line! #9
Comments
Comment line 12 in models.py |
@chrispydev What does it do? Isn't overriding |
Hi guys I fixed this issue, please follow the instructions for a succesfully create super user without "delete" the username functionality:
it should look like this: REQUIRED_FIELDS = ['username',] |
I did the same, it helped with creating supersuper but now i am not able to register from the frontend side. |
type this in the cmd/terminal
Then execute the following:
after this login as admin: admin url - |
Yes it's worked for me |
Now after you create a super user you can turn the as an empty list ---> REQUIRED_FIELDS = [] |
Running method of creating superusers according to Django docs result in the following stacktrace:
It has to do with not implementing the
BaseUserManager
methods correctly as your custom model differs.I did a quick tweak locally and it works fine.
The text was updated successfully, but these errors were encountered: