Csci 40 Notes
Csci 40 Notes
Django Models
● Running the default migrations
○ Migrations – way to ensure that the database structure is consistence across
different setups (development, production, etc.) and to manage any database
structure changes
● Models – class that maps to a single database table
○ Models the database structure
○ Each model
■
○
Querying
● QuerySet
○ Set of objects resulting from doing queries on the Django ORM
●