In this video, we'll explore how to define database-level constraints using Django.
We'll see how we can apply constraints to our model fields - for example, unique constraints and check constraints, as well as not-null constraints - and will explore the effect these have on the underlying database table and columns.
☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying me a coffee here:
[ Ссылка ]
📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
03:05 Types of Constraints
05:55 Defining Check Constraint in Django
14:47 Defining Unique Constraint in Django
▶️ Full Playlist:
[ Ссылка ]-
𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
📖 Blog: [ Ссылка ]
👾 Github: [ Ссылка ]
🐦 Twitter: [ Ссылка ]
📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
Django Constraints: [ Ссылка ]
Types of Constraints: [ Ссылка ]
#python #django #webdevelopment #sql
Ещё видео!