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
From the course: Flask Essential Training
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…
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.
Contents
-
-
-
Install Flask and Pipenv3m 11s
-
Create your first route in a Flask project6m 4s
-
(Locked)
Flask's development environment4m 56s
-
(Locked)
Page templates in Flask with Jinja4m 29s
-
(Locked)
Passing data into Flask apps with forms6m 11s
-
(Locked)
Passing form variables to other routes in Flask4m 20s
-
(Locked)
Using GET and POST requests in Flask3m 31s
-
-
-
-
-