- Create
CustomUser
model by extending fromAbstractBaseUser
. - Create
CustomeUserManager
by extending fromBaseUserManager
. - Add to
setings
asAUTH_USER_MODEL = app.user
. - Make changes in admin.py, i.e. creating creations and change form for the user in the admin panel.
-
Primitive way
by using shell -
Django way
We can use admin panel which comes preloaded with every django project.
-
Create admin/superuser by running
python manage.py createsuperuser
-
Log in to admin-panel @
http://127.0.0.1:8000/admin
(on your localhost) using superuser credentials.
Enjoy !