Now that we have looked at what new features were used in the code pack, let's move on to the main topic for this chapter—the Django admin app. The admin app is quite possibly one of the main reasons for the popularity of Django over other similar web frameworks. It is the embodiment of the batteries included nature of Django. With minimal configuration, the admin app provides a fully featured and extremely tailored CMS, enough to rival big names such as WordPress and Drupal.
In this chapter, you will learn how easy it is to configure and customize the admin to get most of the functionality that you will want in the admin panels of your web apps. Let's start by fixing the most immediate problem for our fictional client, a car rental business owner, which is the ability to add and edit car details.
When you start a new application, Django by default creates an admin.py
file in the application folder. Change the frontend/admin.py
file in our project to match this content...