In this video I'll show you how to add forms to your webpage that allow you to update your database.
Adding Database Web Forms is pretty straight forward with Django. But styling them is not! In this video we'll add a web form to our web page that allows us to add Venus to our Venue Model.
We'll also style the web form using Bootstrap to make it look nicer.
Timecodes
0:00 - Introduction
2:15 - Create Forms.py File
3:43 - Create VenueForm Form
6:20 - Create Add_Venue.html Page
7:09 - Add Path For Add_Venue Page
7:36 - Create an Add_Venue View
8:55 - Create Link on Navbar To Add_Venue Page
9:44 - Add Form To Add_Venue Page
11:57 - Add VenueForm To Views.py File
12:38 - Create Form Functionality In Views.py
15:16 - Add HttpResponseRedirect To views.py
18:57 - Add Submitted Logic To Add_Venue Web Page
20:13 - Test The Form
21:36 - Style The Form With Bootstrap
23:43 - Remove or Change Django Form Labels
25:33 - Add Placeholder Text To Form Input Fields
26:48 - Conclusion