4

An Introduction to Django Admin

This chapter introduces you to the basic functionality of the Django admin app. You will start by creating superuser accounts for the Bookr app, before moving on to executing Create, Read, Update, and Delete (CRUD) operations with the admin app. You will learn how to integrate your Django app with the admin app, and you’ll also look at the behavior of ForeignKeys in the admin app. At the end of this chapter, you will see how you can customize the admin app according to a unique set of preferences by sub-classing the AdminSite and ModelAdmin classes, making its interface more intuitive and user-friendly.

In this chapter, we will cover the following topics:

  • Creating a superuser account
  • CRUD operations using the ...

Get Web Development with Django - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.