Learn Django 3 - Building Simple Search Functionality - Building a Simple Blog Series Part 6

preview_player
Показать описание
In this tutorials we learn how to develop a simple search function in an existing application. We cover Forms & Customisation of forms, Django basic search queries, Handing search input/output front-end, Adding search to the Navbar and using Q objects.

00:00 Introduction
01:37 Preview of final search function

Optional - For new developers or those who want to follow from Part 5
=================================================
03:09 Download part 5 code and setup project
=================================================

08:53 Start building the search functionality
09:52 Build initial form
10:38 Build initial view to display form
12:43 Build initial search template
15:36 Ad URL path
18:00 Setup view to capture user input
25:20 Extend the search template to show search results
26:30 Django QuerySet API reference
31:45 Add search to the Navbar
34:40 Add category selection drop-down - additional search filters
43:28 Using Q to create filter options
47:26 Styling
49:43 Additional styling

Code Repository (Part5)

Code Repository

SUBSCRIBE to get more free tutorials, courses and code snippets!

Follow us on Facebook

Follow use on Twitter:
Рекомендации по теме
Комментарии
Автор

Doing all the series till now. Really enjoyed.

doniyorabduvokhidov
Автор

Thanks for this amazing tutorial ^.^,

ZZ-vzin
Автор

Another wonderful and needful series 😀. Thanks alot for the good work.

paborlouise
Автор

First I would like to say that this info was great to have. Secondly, how can you search just by the category?

DomonickMack
Автор

I have a similar blog and this is really helpful, thank you for you work. Do you know any way to have the search functionality detecting capital letters and non capital at the same time?

Gsnchez
Автор

If you try searching from the nav bar on a post page, it does not work. It only works on the search page.

josevelez
Автор

Thanks for this amazing tutorial!
I have a question though;
Can we use context processors to make the search form globally available so that we could use it in navbar or at multiple pages?

mursalrabb
welcome to shbcf.ru