Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
With routes and views under our belts, it's time to see how Flask handles one of the major requirements for the web, HTML.
Things to Remember
- Use
{{
and}}
to print items in templates. - Flask looks for templates in a directory named
templates
by default. This directory should be in the same directory as your app script.
Docs
- Flask docs on templates
- Jinja2 - The template engine used by Flask.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Andy McDonald
Python Development Techdegree Graduate 13,801 Points1 Answer
-
Megan Weber
31,488 Points2 Answers
-
dakota ferrell
2,336 Points2 Answers
-
dakota ferrell
2,336 Points1 Answer
-
Alejandra Estefanía Aguilera Ávila
6,865 Points3 Answers
-
Federico Lemaire
8,423 Points1 Answer
-
Millie Jack
278 Points1 Answer
-
dakota ferrell
2,336 Points0 Answers
-
dakota ferrell
2,336 Points2 Answers
-
Anders Axelsen
3,471 Points1 Answer
-
Alex Diaz
4,930 Points1 Answer
-
Christopher Stuart
Full Stack JavaScript Techdegree Graduate 27,771 PointsCan't pass add.html template
0 Answers
-
Joseph Martin Nograles
4,696 Points1 Answer
-
Ruby Cai
6,421 Pointshow to fix it ? i change my port , but it still the same problem
Posted by Ruby CaiRuby Cai
6,421 Points2 Answers
-
Aung Naing Oo -
3,865 Points1 Answer
View all discussions for this video
Related 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