From the course: Full Stack Web Development with Flask

Unlock this course with a free trial

Join today to access over 24,400 courses taught by industry experts.

Updating the enrollment template

Updating the enrollment template - Flask Tutorial

From the course: Full Stack Web Development with Flask

Updating the enrollment template

- [Narrator] Updating the Enrollment Template. In this video we're going to update the course enrollment function and the source first. And then we're going to update the enrollment template to show a list of courses. Lets go and see how this is done. Similar to we have the other page, we'll be in the H1 maybe, H3 is too small H1 and then it'll be, not term but just say "Title". The Title page, it'd be enrollment. And then here we need to say two things. We need to check if there are any courses. Okay, so if there are courses then go ahead and then show you were enrolled in. Otherwise you say "none" right? So we've had it in the course, I set it to "none" just to make sure that we have some information here. You don't want to show an empty table, right? So you're going to say here in if block, if there are courses, I think we call it classes. If that is true then go ahead and show something. Yeah, I'll put the…

Contents