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

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

Code Environment

Code Environment

Күн бұрын

Django Rest Framework API : How to get a specific data from django rest framework API model using Viewset, Serializer and Filtering.
How To Filter Data From Database Inside Model ViewSet.
Search in GET APIs using Django Rest Framework.
Source code: github.com/CodeEnvironment/dj...
Search in GET ,Model Filtering With 2 Parameters Or More:
• Django Rest Framework ...
ModelViewset With Serializer and Router:
• Django Rest Framework ...

Пікірлер: 33
@MrROkeRpOweR
@MrROkeRpOweR 3 жыл бұрын
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 3 жыл бұрын
Thank you, glad I could help 🙂.
@iliyas868
@iliyas868 2 жыл бұрын
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 2 жыл бұрын
Thank you so much Iliyas for the support. It’s means a lot ✌🏻
@uppalavasavi4611
@uppalavasavi4611 3 жыл бұрын
Thank you so much!
@joshuahadap2373
@joshuahadap2373 3 жыл бұрын
subscribed! Love your channel man!
@codeenvironment
@codeenvironment 3 жыл бұрын
Thanks you for the support 👍🏻
@nishantthakur3035
@nishantthakur3035 3 жыл бұрын
subscribed. Thank you so much
@TelgonicBrute2
@TelgonicBrute2 2 жыл бұрын
life saver thank you. Sub earned
@sachinpawar8213
@sachinpawar8213 3 жыл бұрын
thank's bro Love from india
@codeenvironment
@codeenvironment 3 жыл бұрын
Thank you 😊
@utsabbashyal7929
@utsabbashyal7929 2 жыл бұрын
loving your vidoes, you make things look simple please make a project on DRF , i will keep supporting you!!! please please!!
@codeenvironment
@codeenvironment 2 жыл бұрын
Thank you Utsab 🙂, I really appreciate the support.
@aldorsan
@aldorsan 3 жыл бұрын
YOU ARE THE FKNG BOSS, great tutorial!!!
@codeenvironment
@codeenvironment 3 жыл бұрын
Thank you for the support man✌🏻
@fun_vids001
@fun_vids001 3 жыл бұрын
Does it work with lower casing as well for example '"ford" instead of "Ford"
@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.
@Swapnil_Joshi
@Swapnil_Joshi Жыл бұрын
if I want to filter using car brand or car model but not both, how can I do it ?
@namesare4fools
@namesare4fools 3 жыл бұрын
subscribed.. keep the Django Rest Framework Videos Coming !! I need help with Social Media Authentication pleasssseee :((((
@codeenvironment
@codeenvironment 3 жыл бұрын
Thanks Niko, please share your email with me and I’ll give you some hints .
@namesare4fools
@namesare4fools 3 жыл бұрын
@@codeenvironment I'll wait for the videos thank you :))
@jatinchauhan5050
@jatinchauhan5050 Жыл бұрын
What we have to pass in the url path to retrieve data
@aakashbhaikatti2823
@aakashbhaikatti2823 2 жыл бұрын
Great explanations. But how can I utilise these in front end?
@codeenvironment
@codeenvironment 2 жыл бұрын
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 2 жыл бұрын
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 2 жыл бұрын
Please email your code to me, so I can check it out .
@aakashbhaikatti2823
@aakashbhaikatti2823 2 жыл бұрын
Sure..
@johnrobertcool
@johnrobertcool 3 жыл бұрын
for this url item_code/16550/ am getting Page not found error
@codeenvironment
@codeenvironment 3 жыл бұрын
Change the under score “_” to hyphen “-“ . An underscore should never be part of a URL.
@johnrobertcool
@johnrobertcool 3 жыл бұрын
@@codeenvironment but I can able to get all the data /item_code/ . If under score issue means . How i got this output
@codeenvironment
@codeenvironment 3 жыл бұрын
Can you please share your code with me through the email.
@mrigendraprasad1877
@mrigendraprasad1877 2 жыл бұрын
what should be the url for this
@yarik83men51
@yarik83men51 3 жыл бұрын
+++
Django Rest Framework API #16 / Many To One Relationship, Nested Data
20:46
Was ist im Eis versteckt? 🧊 Coole Winter-Gadgets von Amazon
00:37
SMOL German
Рет қаралды 34 МЛН
ОДИН ДЕНЬ ИЗ ДЕТСТВА❤️ #shorts
00:59
BATEK_OFFICIAL
Рет қаралды 9 МЛН
МАМА И STANDOFF 2 😳 !FAKE GUN! #shorts
00:34
INNA SERG
Рет қаралды 4,7 МЛН
БОЛЬШОЙ ПЕТУШОК #shorts
00:21
Паша Осадчий
Рет қаралды 8 МЛН
Django Rest Framework Series - Filters and Search features  - Part-6
38:41
Django Rest Framework | Serializers & CRUD
22:40
Dennis Ivy
Рет қаралды 381 М.
Deep Dive into REST API Design and Implementation Best Practices
12:02
Software Developer Diaries
Рет қаралды 39 М.
Filtering and django filter in Django REST Framework (Hindi)
31:55
Django Rest API CRUD - GET, POST, PUT and DELETE
28:29
CodAffection
Рет қаралды 103 М.
Django Rest Framework API #22 / Many To Many Relationship , Nested Data
31:20
Search Filter in Django Rest Framework
6:04
Django World
Рет қаралды 846
Was ist im Eis versteckt? 🧊 Coole Winter-Gadgets von Amazon
00:37
SMOL German
Рет қаралды 34 МЛН