How To Query The Database For Venues - Django Wednesdays #8

How To Query The Database For Venues - Django Wednesdays #8

Codemy.com

3 года назад

24,853 Просмотров

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

Тэги:

#django_database #django_database_tutorial #django_database_query_tutorial #django_database_table #django_database_model #django_query_the_database #how_to_query_the_database_with_django #django_database_get #django_database_get_query #django_database_query #django_database_query_get #django_database_objects #django_database_objects.get() #django_database_objects.all() #codemy.com #john_elder #john_elder_django #django_tutorial_#8 #django_query_database #learn_django
Ссылки и html тэги не поддерживаются


Комментарии: