Flask Basics Course (How To)
Offered By: Treehouse
Course Description
Overview
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
Syllabus
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.
Chevron 11 steps-
Introduction
1:13
-
First Steps
5:58
-
Create an app
2 objectives
-
Create a view
1 objective
-
Request Variables
2:58
-
Request args
1 objective
-
Request
3 questions
-
Clean URL Arguments
5:36
-
View Args Through URL
3 objectives
-
The Adder
1:33
-
Multiply View
5 objectives
Templates 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.
Chevron 6 steps-
Flat HTML
8:34
-
Simple Template
3 objectives
-
Template Inheritance
7:48
-
Template Inheritance
6 objectives
-
Static Files
4:14
-
Templates & Static Files
5 questions
Character 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.
Chevron 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
Related Courses
3D Graphics for Web DevelopersPompeu Fabra University via FutureLearn Accessibility Audit
Amazon Web Services via AWS Skill Builder Advanced React
Meta via Coursera Advanced System Security Topics
University of Colorado System via Coursera Apply advanced testing for your Django web application
Coursera Project Network via Coursera