Django Model Properties & Methods | @property decorator | get_absolute_url() method
Автор: BugBytes
Загружено: 2024-04-09
Просмотров: 6707
In this video we look at model properties and methods in Django, including a look at the @property decorator and the get_absolute_url method.
We'll also look briefly at how we can test a model property using Django's test functionality.
☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying me a coffee here:
https://ko-fi.com/bugbytes
📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
00:34 Model Properties in Django
05:34 Unit testing properties in Django
08:13 Writing property on Django model
12:12 Model methods in Django
16:30 get_absolute_url method in Django
▶️ Full Playlist:
• Django ORM Deep Dive
𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
📖 Blog: https://bugbytes.io/posts/
👾 Github: https://github.com/bugbytes-io/
📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
Django model methods: https://docs.djangoproject.com/en/5.0...
#python #django #webdevelopment
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: