This chapter probably had the least amount of code written for any chapter in this book. However, the functionality that we built here is probably more complicated than what we built in most chapters. I said at the start of the chapter that one of the reasons for the popularity of the Django framework is the admin app. I hope that by now you agree with me.
With less than 20 lines of code, we were able to create a system that rivals most CMS systems out there and is still more tailored to our client's needs. Unlike most CMS systems, we don't treat Car
and Booking
objects as pages or nodes. In our system, they are first-class objects, each with its own fields and individual functionality. However, as far as the client is concerned, the admin works like it would for any CMS, probably easier, because there are no extra fields like there are in most CMS solutions.
We have barely begun to scratch the surface of customizing the admin. There are a lot of features provided by the admin, catering...