Chapter 7: Understanding the Database
We have used Django models to persist data. In this chapter, we will inspect how databases work in Django. We will also improve the admin page readability and show how to switch between database engines.
In this chapter, we will be covering the following topics:
- Understanding the database viewer
- Displaying object information in admin
- Switching to a MySQL database
Technical requirements
In this chapter, we will be using Python 3.8+. Additionally, we will be using the VS Code editor in this book, which you can download from https://code.visualstudio.com/.
The code for this chapter is located at https://github.com/PacktPublishing/Django-4-for-the-Impatient/tree/main/Chapter07/moviereviewsproject.
Understanding ...
Get Django 4 for the Impatient 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.