In this video I'll show you how to Query the Database for individual Venues and output them to the web site.
We'll start out by creating a page that queries the database and returns a list of all the Venues. Then we'll make each of those venues clickable.
When you click on a specific Venue, a new webpage will open with all the information about the venue, pulled individually from the database.
Timecodes
0:00 - Introduction
1:30 - Create venues.html Page
2:08 - Create List_Venues URL for Venues.html Page
2:37 - Create List_Venues Function in Views.py
3:45 - Create For Loop Of Venues on Venues.html Page
4:04 - Create Link To Venues.html In Navbar
5:05 - Add URL to Venue Listings
6:12 - Create Show_Venue URL Path in Urls.py
7:42 - Create Show_Venue Function in Views.py
9:43 - Create Show_Venue.html Page
10:42 - Create Links on The Venue Page To The Venues
12:31 - Add More Database Items To Show_Venue.html
14:22 - Add Cards To Show_Venue.html
16:14 - Add A Table To List_Venues.html
18:14 - Conclusion
#codemy