Django ORM Deep Dive - Models, Migrations and Admin UI Integration

preview_player
Показать описание
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
Рекомендации по теме
Комментарии
Автор

Love your "Django ORM Deep Dive" series. Great explanation. Will watch all of the vids in the series. Thank you for your hard work!

maximus-the-merciful
Автор

Literally demystifying django ORM. Thank you Master !

seydinaoumarsamabaly
Автор

Great series, will be following along.
I thought we were going to create a custom user model, as it's what is commonly done.
Thanks again for the effort.

fernandtape
Автор

excellent. pls continue doing. thanks.

sidds
Автор

Thank you so much! Im learning so fast with you...

zxmu
Автор

Great content as always! Please make video on sub query

SOHAILKHAN-iufu
Автор

Hey there Lyle I wanna thank you for the awesome videos you put it, are there plans by any chance to feature nextjs and django and how to integrate NextJS features into the Django Environment ?

anouarbagent
Автор

Great content as always! Random question, do you ever use copilot? Or some kind of ai that helps you code / document code?

CoderBeast
Автор

please can you add a playlist on how we can customize admin area without 3rd party libraries we hope something native like bootstrap only, because admin area are ugly

alexdin