In this tutorial, we will show how to add a user model to the Django admin.
In your project, you may have a few models that represent different types of users of your app. For instance, you might have a User model and an Admin model. In order to interact with these models in the admin site, you'll need to add them. This is accomplished with a custom manager for each model under django.contrib.admin in the admin_site/models directory on your project's root folder.
This following steps in the django admin.
Step 1: $ Python manage .py createsuperuser. Enter the username and press enter.
Step 2 : Username: admin
Step 3 : and then Email address: firstname.lastname@example.org.
Step4 : pw = ****** .
Step 5 : re pw = ******
Step 6 : create successfully superuser.