filmov
tv
Django ORM Deep Dive - Models, Migrations and Admin UI Integration
Показать описание
In this video, we'll introduce Django Model classes, and describe how these map to database tables. We'll look at different Fields in Django, such as CharField, DecimalField, etc - and see how these map to columns and data-types in the associated tables.
We'll also learn how to use Django's migration system to make changes to the database schema from our application, and the workflow for these changes.
Finally, we'll cover a few additional topics, such as:
- Built-in Django app tables (auth module, User model)
- How to define CHOICES in a Django model, and apply them to a field.
- How to register our models with the Django ADMIN UI.
▶️ Full Playlist:
📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
00:42 Django Project Setup
02:55 Building Django models
06:19 Django Models
07:32 Adding Fields to Django model
11:11 Migrations in Django to apply database changes
15:31 Django built-in app tables and User model
22:01 Django Choices and TextChoices class
26:37 Defining a Sale Django model
31:15 Registering Django Models in the Admin UI
34:07 Django Password Hashing
☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying me a coffee here:
𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
#django #python #webdevelopment #database
We'll also learn how to use Django's migration system to make changes to the database schema from our application, and the workflow for these changes.
Finally, we'll cover a few additional topics, such as:
- Built-in Django app tables (auth module, User model)
- How to define CHOICES in a Django model, and apply them to a field.
- How to register our models with the Django ADMIN UI.
▶️ Full Playlist:
📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
00:42 Django Project Setup
02:55 Building Django models
06:19 Django Models
07:32 Adding Fields to Django model
11:11 Migrations in Django to apply database changes
15:31 Django built-in app tables and User model
22:01 Django Choices and TextChoices class
26:37 Defining a Sale Django model
31:15 Registering Django Models in the Admin UI
34:07 Django Password Hashing
☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying me a coffee here:
𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
#django #python #webdevelopment #database
Комментарии