From the course: Django: Forms

Project walkthrough

From the course: Django: Forms

Start my 1-month free trial

Project walkthrough

- [Narrator] Now to give you a good idea about how Django forms work and where it is that we're going to be going in this course, I'd like to walk you through the end result. We're going to be creating a website for a fictional restaurant called Nandia's Garden, and in Nandia's Garden, they have a big feature request. They want to be able to let people order pizzas from their website. So, this is Nandia Garden's homepage, but if you go ahead and click on Order Pizza, you'll be able to order any pizza that you'd like here. You could say, I'd like a pizza with cheese as one topping, and I'd also like some pepperonis, and you can decide is this a small, a medium, or a large. And if you order a pizza and hit that button, it'll say thanks for ordering. Your medium cheese and pepperoni pizza's on its way. If you say, oh, it wasn't pepperoni that I wanted, it's olives that I wanted, you can edit that order. Come back and say, let's change this to olives. And you know what, let's make this a small actually, and you edit that pizza. Those changes will then be saved in the database. Now besides being able to order and edit one pizza, if we go back to the order page, you can see there's an option down here that says want more than one pizza? Let's say I want to have three pizzas. If I type in three and hit Get Pizzas, we're then led to a special order page where we can order multiple pizzas at one time. So with this, let's just go ahead and we'll fill in some dummy information here. But this allows people to order multiple pizzas at one time, and if they hit the Order Pizza button, it says your pizzas have been ordered. So that's the website. As you can see, lots of different forms that we're working through here. We'll be able to edit things, save things to the database, and you'll learn many different ways to work with Django forms.

Contents