From the course: Django: Forms
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Customizing forms
- [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 and rather than label_tag we'll go ahead and…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.