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://kofi.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/bugbytesio/
Twitter: / bugbytesio
:
Django model methods: https://docs.djangoproject.com/en/5.0...
#python #django #webdevelopment