Though 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, customize it, and take advantage of the comprehensive permission system.
Here is a quick summary of the features covered in this chapter.
Activating the administration interface consists of the following steps:
Add the
django.contrib.admin
application toINSTALLED_APPS
in thesettings.py
fileRun the
manage.py
syncdb
command to create the administration application tablesAdd URL entries for the administration pages to the
urls.py
fileFor each model that you want to manage through the administration interface, add a corresponding admin class and register it in the
admin.py
file
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
, andsearch_fields...