Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
- Forms 6:51
- Forms 3 questions
- Cookies 7:27
- Cookies 4 questions
- Set a Cookie 3 objectives
- Starting the Builder 6:02
- Create a JSON String 2 objectives
- Parse a JSON string 1 objective
- Items 6:27
- Looping Through Items 1 objective
- Drawing the Bear 4:32
- Loop Nested Items 2 objectives
- Flash Messages 5:28
- Flash a Message 3 objectives
- Outro 0:26
- Review: Flask Basics 8 questions

- 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
We can name our bear. Now let's see what else is available for it. Our `builder()` view is the bulk of our application, so let's get started!
New Terms
{% for x in y %}
: You already know what for x in y:
does in Python, but this is the template version. This will cause the enclosed code to be run as many times as there are things in y
. Has to be followed by {% endfor %}
.
{% if %}
: The template version of Python's if
condition. Closed with {% endif %}
.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Daniel Mohr
3,157 Points1 Answer
-
yahyaalshwaily2
Python Development Techdegree Graduate 20,049 Points1 Answer
-
gavynp2020
Python Development Techdegree Graduate 9,009 Points2 Answers
-
Johnny Austen
Front End Web Development Techdegree Graduate 35,494 Points1 Answer
-
Alexander Davison
65,469 Points1 Answer
-
Arnaldo Acosta
15,870 Points1 Answer
-
Noah Fields
13,985 PointsWerkzeug.routing.BuildError: Could not build url for endpoint 'builder'
Posted by Noah FieldsNoah Fields
13,985 Points1 Answer
-
Hasan Ahmad
6,727 Points2 Answers
-
Anders Axelsen
3,471 Points2 Answers
-
markhunter4
5,564 Points0 Answers
-
Lucas Navalesi
3,600 Points2 Answers
-
Christopher Stuart
Full Stack JavaScript Techdegree Graduate 27,771 Pointshelp with error --- jinja2.exceptions.TemplateSyntaxError: unexpected ']', expected ')'
1 Answer
-
Script Code
6,631 Pointsjinja2.exceptions.UndefinedError: 'saves' is undefined
Posted by Script CodeScript Code
6,631 Points4 Answers
-
Wilfredo Casas
6,174 Points1 Answer
-
Jonathan Schmitt
5,138 Points0 Answers
-
Yosef Fastow
18,526 Points3 Answers
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