[Fixed]-Django auth system 'created'

1👍

Your username field is set to created. Change it to contact_name to use a “name” to log in.

However!… You should probably extend the AbstractUser model and not change the USERNAME_FIELD unless you really have to. The way you are doing it now will require you to write custom login views etc..

EDIT:

To use the default user model just delete the line AUTH_USER_MODEL from settings.py then re-run the createsupseruser management command. Then go back to the admin login page and login with the username and password.

Leave a comment