Django Rest Framework API #17 APIView GET & POST Request and Response.

  Рет қаралды 26,455

Code Environment

Code Environment

4 жыл бұрын

Django Rest Framework API. This video will explain how to use APIView to handle get and post requests inside views.py file with a brief comparison with Viewsets.
Django REST API View Request and Response.
Source code: github.com/CodeEnvironment/dj...
Override Create Action Inside ModelViewSet:
• Django Rest Framework ...
ModelViewset With Serializer and Router:
• Django Rest Framework ...
APIView Attributes and Methods:
www.cdrf.co/3.9/rest_framework...
Django Rest Framework Docs:
www.django-rest-framework.org...

Пікірлер: 31
@pasanglama417
@pasanglama417 4 жыл бұрын
completed the whole playlist. appreciate the nicely done tutorial
@codeenvironment
@codeenvironment 4 жыл бұрын
Congratulations, you are a rock star ;) . Stay tuned for more to come.
@papaaemeritus8813
@papaaemeritus8813 2 жыл бұрын
Thanks! Execellent series of tutorials. I found DRF to be really confusing and this helped very much.
@codeenvironment
@codeenvironment 2 жыл бұрын
Thanks Papaa for the support, I’m glad I could help 🙂
@brainijioonung327
@brainijioonung327 2 жыл бұрын
Thank you
@yarik83men51
@yarik83men51 3 жыл бұрын
Best lessons
@codeenvironment
@codeenvironment 3 жыл бұрын
Thank you
@tusharpatel7794
@tusharpatel7794 4 жыл бұрын
Make basic e-commerce project using Django REST API. It will help us a lot. And also not a single video on youtube like this type of project so please try to make.
@codeenvironment
@codeenvironment 4 жыл бұрын
Actually this is one of the thinks that I'm working on, thanks
@carinathebookworm5293
@carinathebookworm5293 2 жыл бұрын
what should I do if I get a 405 Method not allowed message when I try to access the webpage with the view?
@codeenvironment
@codeenvironment 2 жыл бұрын
Hello Carina, When you request a web page from a browser , the server receives a get request, so your view is not allowing the GET requests for some reason and that depends on your view type and code.
@carinathebookworm5293
@carinathebookworm5293 2 жыл бұрын
How did you get around needing to pass a request into your get method? Am I missing something? I keep getting the error "missing 1 required positional argument 'request'" and don't know how to get around it
@codeenvironment
@codeenvironment 2 жыл бұрын
I have to see your code please email me
@carinathebookworm5293
@carinathebookworm5293 2 жыл бұрын
@@codeenvironment I fixed it now but thank you anyway! :D your video is also super helpful btw.
@deepanshuaggarwal7042
@deepanshuaggarwal7042 3 жыл бұрын
Hi bro , your videos are very good. But, I have 1 problem while practicing. Whenever, I request POST, django automatically calls GET method after completing POST request... why is it so??
@codeenvironment
@codeenvironment 3 жыл бұрын
Thank you, could you please tell me how did you experience that, or in other words what makes you think that’s happening?
@bumblebee2012able
@bumblebee2012able 3 жыл бұрын
Thanks from Vietnam, Could you please make a course about microservices in Django, sir?
@codeenvironment
@codeenvironment 3 жыл бұрын
Thank you, I’m working on the microservices aspect 👍🏻
@lordofmountains7808
@lordofmountains7808 4 жыл бұрын
It would be great if u provide the source code
@codeenvironment
@codeenvironment 4 жыл бұрын
I will upload the source code ASAP
@erinayat8662
@erinayat8662 3 жыл бұрын
Hy sir how can we create api url so every one can acces the api
@codeenvironment
@codeenvironment 3 жыл бұрын
You just need to set the permissions for the view that’s controlling the url to “AllowAny”.
@erinayat8662
@erinayat8662 3 жыл бұрын
@@codeenvironment sir how cam I use elastic search in. Django rest framework
@codeenvironment
@codeenvironment 3 жыл бұрын
It’s hard to explain that in a comment but I’m planning to make a video on how to use elasticsearch with django
@cnixontech
@cnixontech 2 жыл бұрын
Please work on the audio quality..You are not audible enough
@codeenvironment
@codeenvironment 2 жыл бұрын
Thanks you Collins, I agree with you. some of the tutorials have audio problems which I fixed in the recent videos
@cnixontech
@cnixontech 2 жыл бұрын
@@codeenvironment thanks for considering this 😊
@cnixontech
@cnixontech 2 жыл бұрын
@@codeenvironment Looking forward to more great content
@codeenvironment
@codeenvironment 2 жыл бұрын
@@cnixontech thank you for the support 🙂✌🏻
@kinvert
@kinvert 2 жыл бұрын
@@codeenvironment The mouse sound is another thing I'm noticing. Great video so far. Maybe you've fixed it already, this seems like one of your older videos. Thanks very helpful so far.
Django Rest Framework API #18 APIView GET Object By ID, URL Parameters .
11:20
He sees meat everywhere 😄🥩
00:11
AngLova
Рет қаралды 11 МЛН
Did you believe it was real? #tiktok
00:25
Анастасия Тарасова
Рет қаралды 49 МЛН
Django Rest Framework | Serializers & CRUD
22:40
Dennis Ivy
Рет қаралды 381 М.
Django Rest Framework API #22 / Many To Many Relationship , Nested Data
31:20
GET, UPDATE, POST, DELETE - Function Views (Django REST framework)
17:45
Getting Started With Django REST Framework
26:31
Pretty Printed
Рет қаралды 199 М.
tRPC, gRPC, GraphQL or REST: when to use what?
10:46
Software Developer Diaries
Рет қаралды 72 М.
Django Rest Framework for Beginners - Simple CRUD API
14:22
John Watson Rooney
Рет қаралды 47 М.
Swagger API documentation with Django REST Framework
10:26
Developer Timeline
Рет қаралды 18 М.
Django REST Framework Oversimplified
9:43
Dennis Ivy
Рет қаралды 304 М.