Django REST framework: Concepts behind different types of routers and viewsets?

  Рет қаралды 3,496

Jitendra Kasaudhan

Jitendra Kasaudhan

Күн бұрын

Basic architecture of django application
Routing layer without routers
Routing layer with routers
Different types of routers in DRF
Demo
Source code and slides(in documents folder): github.com/jka...
Django api: How to create CRUD API using PURE django ?(without REST framework):
• Django api: How to cre...

Пікірлер: 26
@NeilTilton
@NeilTilton 3 жыл бұрын
Great job! Just what I needed as a supplement to the DRF documentation!
@alpstinger5083
@alpstinger5083 3 жыл бұрын
Thanks for this awesomeeeeee video! Just a small question, what does many=True do when calling the serializer?
@jitendrakasaudhan
@jitendrakasaudhan 3 жыл бұрын
Hi @Ansh Tangri, I am glad that it was useful to you :) :) actually in order to serialize a queryset or list of objects instead of a single object instance, you should pass many=True, if you want to serialize only one instance you don't have to pass many=True eg. sr=BlogSerializer(BlogModel.objects.first()) and sr.data will give you serialized data :) :)
@alpstinger5083
@alpstinger5083 3 жыл бұрын
@@jitendrakasaudhan thank you so much for clearing it up man!
@abhinavnarang7855
@abhinavnarang7855 3 жыл бұрын
every other video misses middleware in the architecture great work bro 👍
@jitendrakasaudhan
@jitendrakasaudhan 3 жыл бұрын
@Abhinav Thank you bro :)
@KrishnaManohar8021
@KrishnaManohar8021 4 жыл бұрын
Without serialisation is it possible to create APIs?
@jitendrakasaudhan
@jitendrakasaudhan 4 жыл бұрын
Hi @manu pandu, yes it is possible to create apis without using serializer but you have to manually create response data..for eg... you can use return Response({ 'data': { 'title': blog.title, 'content': blog.contetnt } }) and for list of blogs you need to create your custom function to loop through all the blog items and prepare the data to return to client :) :)
@KrishnaManohar8021
@KrishnaManohar8021 4 жыл бұрын
@@jitendrakasaudhan good thank you😉. Can you read my second comment in the same video.👍
@DineshKc-programming
@DineshKc-programming 3 жыл бұрын
Hello, sir do you have any plan regarding asynchronous Django Video on this channel??
@jitendrakasaudhan
@jitendrakasaudhan 3 жыл бұрын
Hi @Dinesh, I do have plans to create videos related to django-channels, daphne server and explain async support/feature in that context :) :) but im not sure when :) :)
@DineshKc-programming
@DineshKc-programming 3 жыл бұрын
@@jitendrakasaudhan you're legend even though I'm not beginner at django but i watched all your tutorials. And i learn my self. Please make advance stuff like async, threads.. as soon as possible
@jitendrakasaudhan
@jitendrakasaudhan 3 жыл бұрын
Hi @@DineshKc-programming thanks for your appreciation :) :) and ssuggestion :) :) and for sure I will let you know when I have videos related to async and thread topics :)
@DineshKc-programming
@DineshKc-programming 3 жыл бұрын
Hello ,I use vs code but when i click to the ModelViewSet it doesn't redirect to the definition page like you did ??? Is there any extension for Vs code for this ??
@jitendrakasaudhan
@jitendrakasaudhan 3 жыл бұрын
Hi @Dinesh I have used this extension marketplace.visualstudio.com/items?itemName=ms-python.python :) you may try this as well :)
@DineshKc-programming
@DineshKc-programming 3 жыл бұрын
@@jitendrakasaudhan Hello , I tried it but didn't work . Should i do any other configuration??
@DineshKc-programming
@DineshKc-programming 3 жыл бұрын
@@jitendrakasaudhan hello I did it . Thanks a lot . Anyone who needed same help : Please install that extension & then follow the following step. step1 : press CTRL + shift + p step 2 : select Python : select intepretor & press enter step3: select your virtualenv And you're ready to go .
@KrishnaManohar8021
@KrishnaManohar8021 4 жыл бұрын
Can you make DevOps with Django. Like AWS - Docker, Jenkins, Lambda, API Scaling, S3 Bucket, etc... And kindly speed up you tutorials uploading you tube plane 2-3 in a week. Thank you.
@jitendrakasaudhan
@jitendrakasaudhan 4 жыл бұрын
Hi @manu pandu, thanks for your suggestion :) :) currently I don't have any plans on creating Devops-Django videos but I am planning to create video series on developing chat messing system explaining concepts behind websocket communications, django channels, different problems we might face while while developing chat notification system, message read-unread count features etc etc.. basically problems, solutions and some ideas on how we can solve problems while developing chat platforms :) :) probably after that I can try to dive into DevOps-Django topics :) :)
@KrishnaManohar8021
@KrishnaManohar8021 4 жыл бұрын
@@jitendrakasaudhan ok plane to upload 2-3 videos per week atleast 👍
@jitendrakasaudhan
@jitendrakasaudhan 4 жыл бұрын
Hi @@KrishnaManohar8021 thanks a lot for your interest :) :) but unfortunately I have a fulltime job and its hard to create 2-3 videos per week... I am preparing materials and creating videos mainly during weekends :) :) but it would really be cool if I can manage to at least create one video per week :) :) Anyway thank you for your generosity :) :)
@nayanakbari5192
@nayanakbari5192 4 жыл бұрын
@@jitendrakasaudhan at least create 2 video per week on Django rest API in-depth and permissions
@jitendrakasaudhan
@jitendrakasaudhan 4 жыл бұрын
Hi @@nayanakbari5192, thanks a lot for your interest :) :) I had tried it previously but somehow with fulltime job it is not working as expected :) but its interesting to dive deeper into the topics you have mentioned and I will do it in coming days :) :) just in case if you need it, I find these tutorials from coding for entrepreneurs to be useful kzbin.info/www/bejne/Y6C0p4B-pbCeo9U&ab_channel=CodingEntrepreneurs .. he gets into the details and explain things clearly.. I really like his tutorial series :) :)
REAL 3D brush can draw grass Life Hack #shorts #lifehacks
00:42
MrMaximus
Рет қаралды 6 МЛН
How it feels when u walk through first class
00:52
Adam W
Рет қаралды 19 МЛН
这到底是怎么做到的 #路飞#海贼王
00:10
路飞与唐舞桐
Рет қаралды 4,3 МЛН
VAMPIRE DESTROYED GIRL???? 😱
00:56
INO
Рет қаралды 6 МЛН
Django REST framework: Concept behind different types of serializers?
55:40
ViewSets in Django Rest Framework and Types #10
13:26
IamPython
Рет қаралды 11 М.
Django api: How to create CRUD API using PURE django ?(without REST framework)
20:51
Using Viewsets And Routers | Learn Django REST Framework #6
14:19
Ssali Jonathan
Рет қаралды 4 М.
"The Life & Death of htmx" by Alexander Petros at Big Sky Dev Con 2024
23:01
Montana Programmers
Рет қаралды 63 М.
Microservices Explained in 5 Minutes
5:17
5 Minutes or Less
Рет қаралды 765 М.
REAL 3D brush can draw grass Life Hack #shorts #lifehacks
00:42
MrMaximus
Рет қаралды 6 МЛН