Recommend a DRF Tutorial
In fact, I’ve been using DRF for a while, and I have no problem with some common functions. Last week, I came across a DRF tutorial on Bilibili. After looking at the table of contents, I thought it was quite comprehensive, so I watched it through and found it really good. Here is the video link:
https://www.bilibili.com/video/BV1Sz4y1o7E8
This UP host is probably an instructor from a training institution.
Let’s talk about its pros and cons.
Advantages:
The UP host first implemented a simple API function based on Django by himself. Then, step by step, from serializer to ModelSerializer, from Django’s View to DRF’s APIView, GenericAPIView, Viewset, and finally to ModelViewSet, he clearly explained how the code was simplified. This can deepen the understanding of the DRF framework.
Disadvantages:
In the video, there isn’t much explanation on the specific usage of DRF and Django, just a brief introduction. To be honest, I personally think this part is what beginners need more. However, it was mentioned in the video that the cooperative use with Django will be introduced in more detail in his other tutorials.
Finally, I have to say that Bilibili is really a treasure trove of a website. There are a lot of rich beginner resources.