Although this chapter is relatively short, we learned how to implement a lot of things. This emphasizes the fact that Django lets you do a lot with only a few lines of code. You learned how to utilize Django's powerful administration interface, how to customize it, and how to take advantage of the comprehensive permission system offered by Django.
Here is a quick summary of the features covered in this chapter:
Activating the administration interface consists of the following steps:
Adding the
django.contrib.admin
application toINSTALLED_APPS
insettings.py
.Running
manage.py
syncdb
to create the administration application tables.Adding URL entries for the administration pages to
urls.py
.For each model that you want to manage though the administration interface, appending an empty class called
Admin
to the model class.
You can customize listing pages in the administration interface by adding one or more of the following fields to the
Admin
class:list_display
,list_filter
,ordering
,...