
- Python
- Intermediate
About this Course
Flask is one of the easiest ways to bring your Python skills online. It's a great microframework used by thousands of people to create prototypes and small web apps.
What you'll learn
- Creating and controlling views and routes in Flask
- Setting and reading from cookies
- Rendering templates
- Template inheritance
Welcome to Flask
If we're going to use Flask, we need to learn about what makes it tick and how to set up a basic app with some routes. There's a lot to this little framework that could, so we'll take it slow and work our way through the nitty gritty.
11 stepsTemplates and Static Files
Most web apps need to send HTML back to the browser, and ours is no exception. Let's see how to render templates, take advantage of template inheritance, and use static files to make our templates look nicer.
6 stepsCharacter Builder
Now that we know the nuts and bolts of Flask, let's build a fun single-page web app that'll let us create our own bear images.
16 steps-
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
Teacher
-
Kenneth Love
Besides teaching Python, Kenneth Love is a husband and father. He created a few popular Python libraries, worked at most levels of the web stack, and was the Creative Director of a newspaper. He likes board games, whiskey, activism, and dry humor.