Fetch Data From a Database And Output To A Webpage - Django Wednesdays #5
In this video I'll show you how to fetch data from the database and output it onto a web page with Django and Python.
Our Database model has an Event Class, Venue Class, and MyClubUsers Class; and all three of those models are linked together with foreign keys and manytomany fields. So we can query one (the Event Class) and gain access to all of that information.
In this video we'll create and Events webpage that will query the Event Class of our database and pull out all the current planned Events and output them onto the web page! It's super easy!
Timecodes
0:00 - Introduction
1:31 - Create an Events Webpage
2:11 - Create a URL Path For Events Page
2:45 - Create a View for Events Page and Query Database
5:00 - Output Events Data To Webpage
5:58 - Add Link To Events Page On Navbar
6:48 - Loop Thru Database Data On Webpage
7:53 - Access All Items In Event Class
10:21 - Access The MyClubUser Class Items
12:44 - Access The Venue Class Items
14:44 - Add Bootstrap Cards to Webpage
18:05 - Conclusion
Видео Fetch Data From a Database And Output To A Webpage - Django Wednesdays #5 канала Codemy.com
Our Database model has an Event Class, Venue Class, and MyClubUsers Class; and all three of those models are linked together with foreign keys and manytomany fields. So we can query one (the Event Class) and gain access to all of that information.
In this video we'll create and Events webpage that will query the Event Class of our database and pull out all the current planned Events and output them onto the web page! It's super easy!
Timecodes
0:00 - Introduction
1:31 - Create an Events Webpage
2:11 - Create a URL Path For Events Page
2:45 - Create a View for Events Page and Query Database
5:00 - Output Events Data To Webpage
5:58 - Add Link To Events Page On Navbar
6:48 - Loop Thru Database Data On Webpage
7:53 - Access All Items In Event Class
10:21 - Access The MyClubUser Class Items
12:44 - Access The Venue Class Items
14:44 - Add Bootstrap Cards to Webpage
18:05 - Conclusion
Видео Fetch Data From a Database And Output To A Webpage - Django Wednesdays #5 канала Codemy.com
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
How To Add Database Forms To A Web Page - Django Wednesdays #7OpenCV Course - Full Tutorial with PythonHow To Teach Yourself KivyMD Quickly - Python Kivy GUI Tutorial #41Show or Retrieve Database Table Data to User in Django (Hindi)1-Day Project: Build Your Own Arduino Uno for $5What are Django class based views & should you use them?Python Django - Build Inline Formsets (with CBV's) Example 1Displaying Content from a MySQL Database in a WebpageUsing Multiple Database Tables With Django - Django Wednesdays #4Don't Buy Alexa! Build Your Own. Create a Virtual Assistant with Python | Python Project | Jarvis AIPull Data From The Database - Django Databases #3Fetch API & Rendering Data with JavaScriptLEARN OPENCV in 3 HOURS with Python | Including 3x Example ProjectsHow To Modify The Django Admin Area - Django Wednesdays #6User Registration and Login Authentication | Django (3.0) Crash Course Tutorials (pt 14)37: How to show database data on a website using MySQLi | PHP tutorial | Learn PHP programmingBuild a CRM Tool With Treeview And Database - Python Tkinter GUI Tutorial #17212 How to Extract Data From Database And Show In Html (Django Templates) ?Before You Install Django...Watch This! Django Wednesdays #1Learn Django - Build an Asynchronous Chatroom with Django and Channels