Chapter 3. Django Models and Databases
This chapter covers how to create a database for Django applications. In the first few sections, we'll explain the critical steps to create a database, and in the later part of this chapter, we'll explain how to edit the models.py file in detail.
The following lessons are covered in this chapter.
Lessons in this chapter
- Create a Database in Django
- Relational Database
- Create Django Models
- Makemigrations and Migrate
- Add Models in Django Admin – admin.py
- Change Display Name of Record Objects
- Django Models – Data Field Type
- Django Models – Field Options
- Django Models – Help Text Option
- Django Models – Choices Option
- Django Models – DateField with datetime Module
- Django Models – Relationship Fields
- Django Models – ID
- Django Models – ForeignKey (OneToMany Relationship)
- Django Models – OneToOneField
- Django Models – ManyToManyField