Search Filtering and Ordering (Django Rest framework)

preview_player
Показать описание

In this video I show you how to user search filtering and ordering with the django rest framework. This is a great way to do full-text search on a rest api. You can also order querysets by any field in the model class.

#djangorestframework #restapi

Рекомендации по теме
Комментарии
Автор

what a perfect simple explanation, thank you Mitch bro... you don't know how heavily I have been struggling with this, I have watched all Indian guys' tutorials to find a way fix the ordering problem and none of them helped me, this video below 10 minutes, solved my issue... thank you

MrRobot-og
Автор

Also, you need to do pip install django-filter and import :
from django_filters import rest_framework as filters
from django_filters.rest_framework import DjangoFilterBackend
for it to work.

shreyasshetty
Автор

Love your videos bro. They provide me with so much value every time.

jessejoseph
Автор

Exactly what I was looking for! Thank you so much <3

ennilmurtnec
Автор

Ufff man! just what I needed, thank you very much :D

juanluis
Автор

Thank you Mich as always useful video❤

FalseHuman
Автор

You are my hero, please come Turkey we feed you good and take care of you:)

classicguy
Автор

You are king! very precise and very understandable!

ulvidamirli
Автор

can you please let me know the entry for the URLPATTERNS plz?

as
Автор

What about ordering results based on number of occurrance of the word searched??

yasamanshokri
Автор

how can we enable the search feature on a database between two date range in DRF?

as
Автор

after doing the same thing, the search is not working
Its the same result as if I am not searching anything and just getting the whole list

shivanshsharma
Автор

Is this is ready for mobile application?

ZainAli-meqk
Автор

what if the search parameter uses mapping, for example

pahambasic
Автор

How do you setup in urls.py and also in frontend-view?

reapergrim