From the course: Flask Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Passing data into Flask apps with forms

Passing data into Flask apps with forms

From the course: Flask Essential Training

Start my 1-month free trial

Passing data into Flask apps with forms

- [Instructor] In the last video, we learned how to pass forward variables into our templates. We don't need that functionality, so we'll go ahead and delete that here from our app.py on line seven. And then inside of our home.html, we'll get rid of this h2 tag where we use that variable. Also while we're here, this in home isn't the greatest way to describe our project. We're creating a URL shortener, so let's go ahead and change this to URL Shortener so that when our users visit our website, they'll be able to clearly understand what it is that we're creating. So with this, let's go ahead and reload our home page. We should see that nice big URL Shortener. And talk about what it is that we've got to do next, and that's that the whole purpose of our project is that someone's going to pass in a big, long URL and then a short name that they want to have for that URL so that they can quickly access it without having to…

Contents