In this video we'll add a My Events page to our app with Django and Python.
The My Events page will query the database and return all the events that the logged in user is attending.
We'll also make sure that the page only appears if the user is logged in, otherwise it will show an error message and redirect to the homepage.
#django #codemy #JohnElder
Timecodes
0:00 - Introduction
1:11 - Add My_Events.html Template
1:48 - Add My_Events URL
2:20 - Add My_Events View
3:48 - Add My_Events Link To Navbar
5:37 - Determine The Logged In User ID
7:22 - Query The Events Model By Attendees
8:18 - Pass Queried Events To My_Events.html Page
10:49 - Format Results With Cards On My_Events.html Page
11:38 - Conclusion
Add My_Events Page - Django Wednesdays #33
Теги
django query databasedjango query filterpython django queryset filterpython django query databasedjango tutorialdjango wednesdaycodemy.comjohn elderjohn elder djangojohn elder django tutorialjohn elder django tutorial 33django projects examplesdjango python web developmentdjango python projectpython project tutorialpython projects to get a jobdjango tutorial for beginners