Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
It's always good to start small, so let's create a simple Flask app with a single view and route.
New Terms
View: A view is a function that returns an HTTP response. This response has to be a string but can be any string you want.
Route: A route is the URL path to a view. They always start with a forward slash /
and can end with one if you want.
dunder: A quick way of saying "double underscore".
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up