Live Search & Autocomplete in Django, Django Rest Framework using AJAX (Part 2) || How to

preview_player
Показать описание
Hi Everyone,
In this video, I am going to show you how to do Live Search (Part2) in Django using Python, Django, Django Rest Framework, and AJAX, and also Autocomplete in Django using Python, Django, Django Rest Framework, and AJAX. It is very easy to do Django ajax live search and Django autocomplete search in Django using Django, Django Rest Framework, and Django filters package. I am using python 3 and Django 3 and Django Rest Framework 3 (drf) for this project.

Timestamps:
0:00 Intro
0:38 Start autocomplete coding
0:57 Create a function to load the template
1:22 Create autocomplete HTML
1:42 Create the script to load data using ajax
5:10 Configure URLs to load the template
5:47 Test autocomplete
6:25 Fix undefined error
6:47 Fix val error
7:30 Start coding Live Search in Django
8:25 Create a new template for Live Search in Django
9:15 Start HTML Coding
11:27 Create Vue app
17:37 Verify Data loading
18:00 Create Live search
20:43 Filter on Category
22:48 Outro

Important Links:

If you have suggestions for the next video please feel free to comment them down.

NOTE: We'll try to create better videos, so stay tuned.

Thank you, everyone, for watching this video.
If you got any questions, do comment below.
Do like, subscribe and share more such videos on Django and Django Rest Framework.
Tune in Again!
Рекомендации по теме
Комментарии
Автор

Thanks once again for great tutorial. I use elasticseacrh with django RF and cant realize how to process response in JQuery, I'm getting such response(how should i get autocoplete of a few titles): {
"title_suggest__completion": [
{
"text": "wh",
"offset": 0,
"length": 2,
"options": [
{
"text": "Why China's climate policy matters to us all - BBC",
"_index": "elastic_demo",
"_type": "_doc",
"_id": "280",
"_score": 1.0,
"_source": {
"id": 280,
"title": "Why China's climate policy matters to us all - BBC News"
}
},
{
"text": "Why China's climate policy matters to us all - BBC",
"_index": "elastic_demo",
"_type": "_doc",
"_id": "300",
"_score": 1.0,
"_source": {
"id": 300,
"title": "Why China's climate policy matters to us all - BBC News"
}
},
{
"text": "Why Nvidia’s $40 billion bid for Arm could be in j",
"_index": "elastic_demo",
"_type": "_doc",
"_id": "1",
"_score": 1.0,
"_source": {
"id": 1,
"title": "Why Nvidia’s $40 billion bid for Arm could be in jeopardy - CNBC"
}
},
{
"text": "Why Nvidia’s $40 billion bid for Arm could be in j",
"_index": "elastic_demo",
"_type": "_doc",
"_id": "12",
"_score": 1.0,
"_source": {
"id": 12,
"title": "Why Nvidia’s $40 billion bid for Arm could be in jeopardy - CNBC"
}
},
{
"text": "Why keeping delta variant in check is so important",
"_index": "elastic_demo",
"_type": "_doc",
"_id": "260",
"_score": 1.0,
"_source": {
"id": 260,
"title": "Why keeping delta variant in check is so important to our economy - PBS NewsHour"
}
}
]
}
]
}

andreyandreyovich
Автор

Brp OSError => oserror[no38] function not implemented error.. Aa raha hai.. When i uploading image why? Admin site amd html filese dono taraf se error

rahul_singh_rajput