Django provides a default admin interface that you can use to directly create, read, update, and delete a model. It reads a set of data that explains and provides information about the data from the model to provide an instant interface where the user can customize the content of the application. It is a built-in module and design for doing administrative work for the user.
Activating and using the admin interface
The admin app (django.contrib.admin) is included by default and already added to the INSTALLED_APPS list present in the settings.py file.
To access to this admin interface in the browser, write & # 39; / admin / & # 39; to & # 39; localhost: 8000 / admin / & # 39; and it will show output like below:
It asks for login credentials, if no login id has been created before, then a new superuser can be created using the command below:
python manage.py createsuperuser pre>
Now go to the admin login page after starting the development server, which can be done with the command below.python manage.py runserver
Enter your username and password, then click Login.
After successful login displays the interface as below:
This is what is called the Django Admin Dashboard, where you can add, remove and update data related to any registered model.