Django Rest Framework API #12 / Search | Filtering Data Inside ModelViewset.

  Рет қаралды 10,727

Code Environment

Code Environment

Күн бұрын

Пікірлер: 34
@MrROkeRpOweR
@MrROkeRpOweR 4 жыл бұрын
you've saved me! I didn't found a straightforward way to override the methods in the web, even at official docs. New sub! Thank u so much
@codeenvironment
@codeenvironment 4 жыл бұрын
Thank you, glad I could help 🙂.
@joshuahadap2373
@joshuahadap2373 4 жыл бұрын
subscribed! Love your channel man!
@codeenvironment
@codeenvironment 4 жыл бұрын
Thanks you for the support 👍🏻
@hussain_iliyas
@hussain_iliyas 3 жыл бұрын
Thank you so much for this video and this entire playlist as well. Can't thank you enough tbh. Love & Best Regards from India :)
@codeenvironment
@codeenvironment 3 жыл бұрын
Thank you so much Iliyas for the support. It’s means a lot ✌🏻
@utsabbashyal7929
@utsabbashyal7929 3 жыл бұрын
loving your vidoes, you make things look simple please make a project on DRF , i will keep supporting you!!! please please!!
@codeenvironment
@codeenvironment 3 жыл бұрын
Thank you Utsab 🙂, I really appreciate the support.
@sachinpawar8213
@sachinpawar8213 3 жыл бұрын
thank's bro Love from india
@codeenvironment
@codeenvironment 3 жыл бұрын
Thank you 😊
@aldorsan
@aldorsan 3 жыл бұрын
YOU ARE THE FKNG BOSS, great tutorial!!!
@codeenvironment
@codeenvironment 3 жыл бұрын
Thank you for the support man✌🏻
@Swapnil_Joshi
@Swapnil_Joshi 2 жыл бұрын
if I want to filter using car brand or car model but not both, how can I do it ?
@TelgonicBrute2
@TelgonicBrute2 2 жыл бұрын
life saver thank you. Sub earned
@jatinchauhan5050
@jatinchauhan5050 2 жыл бұрын
What we have to pass in the url path to retrieve data
@LifeTravel-p6u
@LifeTravel-p6u 3 жыл бұрын
Does it work with lower casing as well for example '"ford" instead of "Ford"
@nishantthakur3035
@nishantthakur3035 4 жыл бұрын
subscribed. Thank you so much
@johnrobertcool
@johnrobertcool 4 жыл бұрын
for this url item_code/16550/ am getting Page not found error
@codeenvironment
@codeenvironment 4 жыл бұрын
Change the under score “_” to hyphen “-“ . An underscore should never be part of a URL.
@johnrobertcool
@johnrobertcool 4 жыл бұрын
@@codeenvironment but I can able to get all the data /item_code/ . If under score issue means . How i got this output
@codeenvironment
@codeenvironment 4 жыл бұрын
Can you please share your code with me through the email.
@szymonslominski8830
@szymonslominski8830 3 жыл бұрын
Typing error: def retrieve(self, ...). There is always a red line on the right side of the screen if you make such a mistake.
@mrigendraprasad1877
@mrigendraprasad1877 2 жыл бұрын
what should be the url for this
@uppalavasavi4611
@uppalavasavi4611 3 жыл бұрын
Thank you so much!
@alexburla1973
@alexburla1973 6 ай бұрын
Just want to point that your examples with using retrieve method are fine just for quick examples but using it for something except retrieving object data is not a normal RESTful behaviour. Not sure if you mentioned it in the video so leaving this here in the comment :)
@aakashbhaikatti2823
@aakashbhaikatti2823 3 жыл бұрын
Great explanations. But how can I utilise these in front end?
@codeenvironment
@codeenvironment 3 жыл бұрын
Sorry Aakash, I actually replied to your question but I'm not sure why it wasn't submitted. Filtering is mainly used to get only the necessary data from your API or database, so as a frontend developer, the more precise the data the easier to handle and view, so instead of receiving a punch of objects and having to iterate through them in order to get what you want, you just need to send the corresponding parameters with the request to your API and get back the result. Please let me know if you need further explanation.
@aakashbhaikatti2823
@aakashbhaikatti2823 3 жыл бұрын
I tried the solution you provided but wasn't able to get output as needed. Even it says 'Serializer object has not attribute get_category'.
@codeenvironment
@codeenvironment 3 жыл бұрын
Please email your code to me, so I can check it out .
@aakashbhaikatti2823
@aakashbhaikatti2823 3 жыл бұрын
Sure..
@namesare4fools
@namesare4fools 4 жыл бұрын
subscribed.. keep the Django Rest Framework Videos Coming !! I need help with Social Media Authentication pleasssseee :((((
@codeenvironment
@codeenvironment 4 жыл бұрын
Thanks Niko, please share your email with me and I’ll give you some hints .
@namesare4fools
@namesare4fools 4 жыл бұрын
@@codeenvironment I'll wait for the videos thank you :))
@yarik83men51
@yarik83men51 3 жыл бұрын
+++
Django Rest Framework API #16 / Many To One Relationship, Nested Data
20:46
How to have fun with a child 🤣 Food wrap frame! #shorts
0:21
BadaBOOM!
Рет қаралды 17 МЛН
Who is More Stupid? #tiktok #sigmagirl #funny
0:27
CRAZY GREAPA
Рет қаралды 10 МЛН
Django Rest Framework API #30 / Improve API Response Using Hyperlinks
28:38
Django Rest Framework | Serializers & CRUD
22:40
Dennis Ivy
Рет қаралды 395 М.
Always Check for the Hidden API when Web Scraping
11:50
John Watson Rooney
Рет қаралды 660 М.
ViewSets in Django Rest Framework and Types #10
13:26
IamPython
Рет қаралды 12 М.
Search Filtering and Ordering (Django Rest framework)
9:39
CodingWithMitch
Рет қаралды 49 М.
Django Rest Framework API #17  APIView GET & POST Request and Response.
27:06
Django REST Framework Oversimplified
9:43
Dennis Ivy
Рет қаралды 361 М.
Django Rest API CRUD - GET, POST, PUT and DELETE
28:29
CodAffection
Рет қаралды 104 М.
How to have fun with a child 🤣 Food wrap frame! #shorts
0:21
BadaBOOM!
Рет қаралды 17 МЛН