Exploring Django Admin
For any application, we need some kind of admin UI to perform administrative tasks. Django Admin provides this powerful functionality out of the box. But before we can look at the interface, like any other admin interface, we need user login credentials to access Django Admin.
Creating a superuser in Django
Django provides us with the built-in createsuperuser
management command to create new admin users. Once we run this command in our terminal, we shall see a guided wizard that will help us create a Django superuser:
python manage.py createsuperuser
By following the instructions and entering the data provided, we will get a Django superuser.
Django authentication and authorization
Django provides authentication and authorization support out of the box. When we are creating superuser in Django, we are going to use the default Django authentication system. We’ll discuss the details of Django authentication and authorization in Chapter 5...