Adding Search Filtering, Attribute Filtering, Ordering & Pagination || Rest API in Django

  Рет қаралды 11,597

Priyanshu Gupta

Priyanshu Gupta

Күн бұрын

In this video, we will be adding search filtering, attribute filtering, ordering & Pagination in Django and the flow that we followed in this video is as follows -
Brief about what we will be covering in this video that is a search bar with suggestions using a Rest API, filtering products on the basis of price, sorting on the basis of different criteria and pagination
Implementing pagination using a function-based and class-based view
How to parse query string parameters in GET request in django
Implementing ordering functionality and syncing with other features as well using javascript
Implementing attribute filtering to filter products on the basis of price
Making a search bar for filtering products on the basis of two attributes and also a suggestion option box
To populate the suggestion box we used a Rest API which we created by serializing data on our own and using Django JsonResponse
How JsonResponse works
Implementing JsonResponse functionality on our own using json.dumps
🛑 Task - You have to sync pagination with filtering and ordering
.
.
✔Link For Full Playlist of Mastering Django - • Mastering Django
Follow me on Instagram for the latest updates and content regarding software development and lifestyle- / priyanshu._gupta
Github Link - github.com/pri...
If you like the video do give it a thumbs up 👍 and share it with your friends and share your valuable feedback in the comment section
.
.
.
✔ Do subscribe to my channel "Priyanshu Gupta" for more skill development and point to point videos❤
.
.
I am trying to cover all problems faced by a developer as the material available on the internet is scattered and difficult to find...... I am trying to bring that all together which can be used effectively for fast and efficient productivity and skill enhancement
.
.
.
.
✔Link for Full Playlist of AWS Tutorials - • AWS Tutorials
✔Link for Full Playlist of Security Analysis and Networking - • Security Analysis: Imp...
#django #sessions #webdevelopment

Пікірлер: 32
@sweqtmode8772
@sweqtmode8772 Жыл бұрын
Thank you for making this video in English, I can't understand other languages and this video really helped me out, great job!
@dhruvilshah9098
@dhruvilshah9098 3 жыл бұрын
Bahut acha tha explanation...
@PriyanshuGuptaOfficial
@PriyanshuGuptaOfficial 3 жыл бұрын
Thanks 😊
@aaudhachhabria7491
@aaudhachhabria7491 2 жыл бұрын
wounderful explanation.
@atulsharma3993
@atulsharma3993 3 жыл бұрын
great job sir
@PriyanshuGuptaOfficial
@PriyanshuGuptaOfficial 3 жыл бұрын
Thank you
@findME906
@findME906 2 жыл бұрын
Saviour. Thanks
@abdullahamin4504
@abdullahamin4504 2 жыл бұрын
Hellow ----- My self Abdullah from bangladesh . I Watch your video regularly and now i complete django playlist. i learn everything from your youtube --- thank you --- I have a request to you that please make a video how to use django custom admin panel instead django default admin templare.... please please please --------- i wait for your notification
@sumansunuwar1540
@sumansunuwar1540 3 жыл бұрын
why did you pass the same object in context {product : prodcut , page_obj: prodcut} in paginator , both objects arent same ???? im little confused about how you use those try except twice in the paginator
@saugatrajbhandari4247
@saugatrajbhandari4247 3 жыл бұрын
should i learn ds and algo? how important is it?
@PriyanshuGuptaOfficial
@PriyanshuGuptaOfficial 3 жыл бұрын
Yes its very important because at the base level we are using DS only everywhere....... and if you wanna master coding then its must
@kumarsaurav2901
@kumarsaurav2901 3 жыл бұрын
how to do ordering on a model but on a field on reverse relation which is a foreignkey in the related model
@ChampuStrike
@ChampuStrike 2 жыл бұрын
Is there a way to do this using generic class views?
@nikolayivanov1594
@nikolayivanov1594 Жыл бұрын
When i change page the ordering of the model is going to the default meta order ... How to fix that ?
@SKKhandokar1
@SKKhandokar1 Жыл бұрын
same problem
@hackerdaddy2828
@hackerdaddy2828 3 жыл бұрын
bro i prefer deploy on nginx and gunicorn and lib_wsgi
@PriyanshuGuptaOfficial
@PriyanshuGuptaOfficial 3 жыл бұрын
Yes its good....... I have also used nginx and gunicorn for deployment
@hackerdaddy2828
@hackerdaddy2828 3 жыл бұрын
@@PriyanshuGuptaOfficial to apke port 8000 kyu dikha raha hai
@PriyanshuGuptaOfficial
@PriyanshuGuptaOfficial 3 жыл бұрын
Currently its on local server bro ...... I have not deployed it........
@hackerdaddy2828
@hackerdaddy2828 3 жыл бұрын
@@PriyanshuGuptaOfficial bhai maine class based view pe work nahi kar raha pagination
@PriyanshuGuptaOfficial
@PriyanshuGuptaOfficial 3 жыл бұрын
Bhai work karega on a listview jaise maine show kiya hai ....... paginate_by field use karke for class based view
@ziy4dmhd
@ziy4dmhd 8 ай бұрын
Can you explain .the pagination and searching working simultaneously in django which ,you have given as a homework in video😂
@PriyanshuGuptaOfficial
@PriyanshuGuptaOfficial 8 ай бұрын
Hit the search api, get only first 10(or what ever page size you want to put) and give it in response. User will scroll down, once he reaches the bottom, hit the api again but this time mention the last id of the record. This time backend will get the next 10 records after that id.(you’ll have to use order_by using id)
@ziy4dmhd
@ziy4dmhd 8 ай бұрын
can you share the code snippets
@mohammadbismail
@mohammadbismail Жыл бұрын
I came only for the sync section, very disappointed
@rodericksystem
@rodericksystem Жыл бұрын
add subtitles please
@PriyanshuGuptaOfficial
@PriyanshuGuptaOfficial 11 ай бұрын
Sorry, youtube is not generating auto subtitles for this video. So can’t do anything.
@dipusarker8072
@dipusarker8072 3 жыл бұрын
Why English?? Hindi is best like previous
@PriyanshuGuptaOfficial
@PriyanshuGuptaOfficial 3 жыл бұрын
Actually I wanted more people to take advantage from these videos as such content is very difficult to find....... as english is a global language so even who don’t know hindi can also understand it
@PriyanshuGuptaOfficial
@PriyanshuGuptaOfficial 3 жыл бұрын
Did you face any difficulty in the way I presented the content in this video?
@dipusarker8072
@dipusarker8072 3 жыл бұрын
@@PriyanshuGuptaOfficial National language is best language for learning like previous..........
когда не обедаешь в школе // EVA mash
00:51
EVA mash
Рет қаралды 4,4 МЛН
The selfish The Joker was taught a lesson by Officer Rabbit. #funny #supersiblings
00:12
Funny superhero siblings
Рет қаралды 11 МЛН
Django Search
1:31:18
Very Academy
Рет қаралды 20 М.
Create A Python API in 12 Minutes
12:05
Tech With Tim
Рет қаралды 657 М.
The Biggest Issues I've Faced Web Scraping (and how to fix them)
15:03
Django filter And Pagination
35:17
TauhidCodes
Рет қаралды 22 М.