2. Models and Migrations

Overview

This chapter introduces you to the concept of databases and their importance in building web applications. You will start by creating a database using an open-source database visualization tool called SQLite DB Browser. You will then perform some basic Create Read Update Delete (CRUD) database operations using SQL commands. Then, you will learn about Django's Object Relational Mapping (ORM), using which your application can interact and seamlessly work with a relational database using simple Python code, eliminating the need to run complex SQL queries. You will learn about models and migrations, which are a part of Django's ORM, that are used to propagate database schematic changes from the application ...

Get Web Development with Django 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.