Create A Search Bar - Django Wednesdays #9

Описание к видео Create A Search Bar - Django Wednesdays #9

In this video we'll make the Navbar Search Function actually look up Venues for our Django App.


Our navbar has a search box, but up until now it hasn't worked. In this video we'll build out the search functionality so that users can search venues by name using words contained in the name.


We'll search the using the query Venue.objects.filter(name__contains=searched)


Timecodes
0:00​​ - Introduction
1:06 - Create search_venues.html Page
1:57 - Create search_venues URL Path
2:35 - Create search_venues view.py View
3:36 - Update Navbar Search Code
7:10 - Form Post Search Code on Views.py View
8:23 - Pass Form Post Back To html Page
9:46 - Query The Database For Searched Text
11:02 - Output Search Results To Page
13:48 - Make Search Results Clickable
15:06 - Conclusion


#codemy #Django

Комментарии

Информация по комментариям в разработке