Useful links:
https://www.django-rest-framework.org...
About this video:
Quick look at DRF serializers basics.
Video Content:
00:00 Intro
04:15 Open Django Console
05:09 Create CountrySerializer
06:59 Import CountrySerializer to Django Console
07:22 Instantiate an empty serializer
08:23 Instantiate a serializer with data
09:33 is_valid() with good data + save()
10:14 is_valid() with bad data + errors
11:49 Instantiate a serializer using Django model instance
13:05 Update serializer using PUT method
15:56 Update serializer using PATCH method (w. partial arg)
18:07 Serialize single model objects
16:31 Serialize multiple objects (query set)
21:20 Summary
About this tutorial:
The primary goal of this tutorial is to take you through the steps of creating a solid Django portfolio project that will stand out when you talk to your future employer.
Check out tutorial's intro to see if it's something for you:
• 01 - Introduction to the course - Django -...
Tutorial repo:
https://github.com/SugarloafAndACupOf...
Repo branch:
https://github.com/SugarloafAndACupOf...
Please hit SUBSCRIBE if you wanna get the notifications about the new content!
Also, like the hell out of this video if you find it useful/interesting!
Follow us on Facebook: / sugarloaf-and-a-cup-of-joe-101638761829670
and Instagram: / sugarloaf_and_a_cup_of_joe