Sometimes, you have to take complete control of how your forms are shown. Learn how to use Django forms to get fine-tuned control of your forms in this video.
- [Instructor] In our last video, … we talked about how to change the outlook of forms via Sane, … you know, lay this out in paragraph tags … as an unordered list, … but you can go even more custom them that with your form. … So if you'd like to see how you can do that … instead of just having a regular old pizzaform here, … we can actually go field by field … and lay things out exactly how we would like. … So for instance, we could go here and say, … all right, we want to have pizzaform.topping1, … you just name whatever your field is … and then you can say that you want this to be, for instance, … the label_tag. … So we can go ahead and have that, … and maybe below this we'll just go ahead … and copy and paste that instead of having the label tag, … this is where we'd like to have the actual input. … So you just do pizzaform.topping1 … and that brings the actual field, … and then with this, … if you want to have an error on top of this, … then we're going to go ahead and paste here …
- 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.