7

Understanding the Database

The previous chapters showed us how to use Django models to persist and retrieve data from a database. In this chapter, we will explore how databases work in Django. We will utilize a database viewer to examine how Django manages various information and stores it. Additionally, we will learn how to customize the Django admin panel and switch between database engines.

In this chapter, we will cover the following topics:

  • Understanding the database viewer
  • Customizing the Django admin panel
  • Switching to a MySQL database

By the end of this chapter, you will understand how the database works, how to visualize database information, and how to switch to a different database engine.

Technical requirements

In this chapter, ...

Get Django 5 for the Impatient - 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.