You'll sometimes want to accept lots of forms, like if someone wants to order lots of items. Explore this topic in this video.
- [Instructor] We've gone very in-depth with forms, … but I'm here to take you to the next level … by talking about something called form sets. … Form sets allow you to take one form … and repeat it over and over, … so in our case, people could order … multiple pizzas at once. … So, form sets take some work. … We're going to have to move step by step … in order to get this live, … but let's go ahead and start here … inside of our order.html. … And we want to be able to send people … over to our order page to order multiple pizzas, … so let's go ahead and put in a few BR tags … so that there's enough space … in between the above order form … and what we're creating down below. … Then what we want to have is ask the user something like, … want more than one pizza, question mark. … Then, what we're going to do is provide a new form. … So, this form, all it's going to do … is take us to the multiple pizza order page, … but it's going to show how many pizzas that they want. … So, with this form, we'll create an action, …
- Creating form fields
- Using submitted data
- Adding models
- Using the ModelForms class
- Working with widgets
- Accepting files and multiple forms on a page
- Customizing formsets
- Using local validation
- Delivering errors responsibly
- Customizing forms
- Styling with CSS
Skill Level Intermediate
Building RESTful Web APIs with Djangowith Rudolf Olah1h 9m Intermediate
1. Getting Started with Forms
2. Working with Advanced Form Features
3. Customizing and Styling Form Appearance
Next steps1m 19s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.