Skip to content
CBT Nuggets
DemoBook a Demo

Python Flask Tutorial

Python

Associate · Developer

This Python Flask Tutorial training covers how to code web applications using Flask, a Python micro web framework. You'll learn how to install and work with Flask, plus how to build apps in it.

Updated May 2023

14Skills
86Videos
13hTotal

Who This Course Is For

This Python Flask training is considered associate-level Python training, which means it was designed for software developers. This flask skills course is designed for software developers with three to five years of experience with Python web framework.

Skills Your Team Will Gain

  • Using Flask to build web apps quickly that are nevertheless robust and agile
  • Comparing web frameworks to micro-frameworks, and recognizing where Flask falls
  • Navigating templates, toolkits and engines that Flask uses for building custom web applications
  • Installing Flask, creating base applications, setting up databases, and modifying posts

Course Curriculum

One skill is free to watch — no signup needed. The other 13 premium skills unlock for your whole team with a CBT Nuggets plan.

Free skill preview

Build Webservers with Flask: The Basics

Shaun WassellDuration: 51m14 videos

Watch this complete skill free — the same trainer, videos, and labs your team gets with a plan.

Watch free skill
  • Build Webservers with Flask: The BasicsFree51m · 14 videos
  • Premium skill.Build Webservers with Flask: Handle Different Request Types50m · 14 videos
  • Premium skill.Build Webservers with Flask: URL Parameters, Query Parameters, and Cookies52m · 14 videos
  • Premium skill.Build Webservers with Flask: Simple REST API Example1h 1m · 16 videos
  • Premium skill.Build Webservers with Flask: Working with Middleware54m · 14 videos
  • Premium skill.Build Webservers with Flask: Creating a Simple Blog Site55m · 16 videos
  • Premium skill.Advanced Tree Algorithms in Python50m · 12 videos
  • Premium skill.Build a Full-Stack To-Do List1h 9m · 16 videos
  • Premium skill.Build Webservers with Flask: Combining JavaScript and Python54m · 14 videos
  • Premium skill.Build Webservers with Flask: Working with MongoDB54m · 14 videos
  • Premium skill.Build Webservers with Flask: Build a Cookies-Based Shopping Cart55m · 12 videos
  • Premium skill.Building Webservers with Flask: Build a Tic-Tac-Toe Game API1h 1m · 16 videos
  • Premium skill.Build Webservers with Flask: Build a Shopping Cart Front-end58m · 14 videos
  • Premium skill.Build Webservers with Flask: Adding Front-end Logic to a Blog Site57m · 14 videos
Want to browse the locked skills?
with no purchase required. Already have an account?

An account gets you the full catalog to browse, pre-assessments, quiz questions on free skills, and IT Trainerbot, with every answer citing its source video.

Put this course to work for your team

Every subscription includes this course with the full library, virtual labs, and practice exams — or talk it through with sales.

For IT leaders

What IT leaders need to know before assigning this course

Many development teams ship internal tools, APIs, and web apps in Python, but without a shared approach to web frameworks, each developer builds routes, error handling, and data access differently. That inconsistency slows code reviews, makes handoffs harder, and leaves security gaps. One example is accepting unchecked client input through URL parameters, which the course explicitly flags as dangerous.

This intermediate course, taught by Shaun Wassell, gives your team a common Flask baseline. It covers:

  • Request methods, URL and query parameters, and cookies
  • Error handling
  • REST API design
  • Using middleware to cut repetition across routes
  • MongoDB integration with PyMongo
  • Splitting work between JavaScript front ends and Python back ends

Role fit: The course suits software developers and IT Practitioners who already write Python, especially those moving into backend or full-stack work. Team Leads can use it to standardize how new hires structure Flask projects. That includes virtual environments, the debug flag kept in development only, and a clear separation between client, server, and database.

Time investment: Plan for about 13 hours per learner across 14 skills of roughly 50–70 minutes each. The course includes practical Flask builds and examples, including a simple full-stack blog site, REST API work, and MongoDB integration. These can work well as weekly assignments for teams that need a shared Flask workflow.

Change-management note: Demos run on a Mac in Visual Studio Code. Windows users will see minor differences in shell commands, while the Python commands stay the same.

Training Managers can group these skills into Playlists that match a team's project roadmap and use Team Reporting to track completion across the group.

Team Impact

How this training helps your team succeed

Development teams often reach for Flask when they need a lightweight web service or internal tool, but inconsistent habits around routing, input handling, and error management can lead to fragile code and avoidable rework. This training walks your team through realistic builds — a REST API, a full-stack blog site, a to-do app, a cookies-based shopping cart, and a tic-tac-toe game API — so they practice the patterns they will use on the job.

  • Safer handling of client input: Developers learn why accepting client-supplied strings in URL parameters can be dangerous and how to handle errors from unpredictable clients, untested front-end releases, or malicious requests.
  • Repeatable route and template patterns: Developers practice building Flask routes, rendering templates, and structuring responses so applications stay easier to read and maintain as they grow.
  • Lower server workload and cloud spend: Combining JavaScript front-end execution with Python back ends shifts appropriate work to the client, which the course connects directly to reduced server load and hosting costs.
  • Consistent project setup and data persistence: Teams practice running Flask apps consistently, use the debug flag only in development, and move from in-memory lists to MongoDB with PyMongo so data survives server restarts.

The result for Team Leads is a shared, repeatable approach to building and maintaining Flask services.

After completion

Capabilities your team walks away with

Knowledge

  • How Flask servers handle routes and the main request methods (GET, POST, PUT, DELETE), including requests that carry a request body
  • How clients pass data through URL parameters, query parameters, and cookies, and the security risks of trusting client-supplied URL strings
  • How middleware and Flask's g object reduce repetition across routes and share per-request data without risky global variables
  • The trade-offs between front-end and back-end execution, including how shifting work to the client can lower server load and hosting cost
  • How MongoDB organizes data into databases and collections, and why the server, not the client, typically queries the database
  • Why the debug flag speeds development but should stay out of production

Ability

  • Set up a Flask project, then run a server with automatic reload
  • Build a REST API for a resource, with error handling for unpredictable or malicious client input
  • Connect Flask endpoints to MongoDB using PyMongo
  • Build full-stack apps that combine Jinja templates, JavaScript front-end logic, and Python back-end code that communicate through network requests
  • Use cookies to keep per-user state, such as a shopping cart that holds up across server restarts
  • Deliver working reference projects, including a to-do list and a simple Flask blog site application

Readiness check

Confirm prerequisite knowledge before training begins

A short placement assessment on the CBT Nuggets assessments platform measures whether a learner already has the foundation this course assumes. IT leaders use it to put the right people in the right training — and any learner can take it right now to make sure they'll get full value from day one.

  • Questions generated from this course's own video transcripts — what gets measured is exactly what gets taught
  • Instant, per-learner results that show whether the prerequisite foundation is in place
  • Results roll up into team readiness reporting, so training hours go where they change outcomes
Runs on assessments.cbtnuggets.com — sign in with an Adept account so results roll up into team readiness reporting. Need one?
.

This course is included with every plan

Unlock this one course, or get one learner — or your whole team — access to all 294 courses, virtual labs, and practice exams.

Course Unlock

Just need this course?

$75one time

No subscription

One year of access to Python Flask Tutorial

CBT Nuggets Individual

Includes IT Trainerbot Plus

$49per month

Billed annually

Every course, for one learner

See Individual pricing
For IT teams

CBT Nuggets Teams

IT Trainerbot for every seat

$59per seat / mo

Billed annually

From 1 learner seat · unlimited admin seats

Checking your access…

Frequently Asked Questions

Is it worth it to learn Python Flask?

Python Flask obviously isn't for everyone, but if you're in need of a versatile and lightweight web framework, then Python Flask is absolutely worth it. Web developers use Flask's flexibility to build out APIs and microservices, data scientists love how easy it is to develop dashboards for their unique data needs, and engineers can get it up and running for small projects with very little development time needed.

How much does it cost to use Python Flask?

Python Flask itself is free and open source, so if you're just interested in navigating the framework itself and seeing what it's capable of, there's no cost to you. Python Flask is a microframework, so there are no dependent tools or libraries with hidden costs. And hosting small Python Flask apps tends to be cheap as well: web hosting companies tend to charge very little to run relatively small Flask jobs.

How difficult is it to learn Python Flask?

Python Flask isn't hard to learn, and most developers can master its operation and start building small projects within a month. If you're a person who reads documentation for fun, the Python Flask documentation is comprehensive. But the easiest way to learn Flask is with a course that walks you through the concepts and details before giving you challenges and practice projects with a development environment to work in.

Does this Python Flask course prepare me for any certifications?

Not directly, no. Both Python and Flask are open source, which is great for many reasons. But one thing it means is that there's no "author" or definitive authority on using Flask or Python. And so, there's no one to officially validate your skill or knowledge in using them. Some courses offer a certificate of completion, but there are no officially recognized IT industry certifications related to Python Flask.

What's the best way to study and learn Python Flask?

The best way to study Python Flask is twofold: knowledge and skills. To learn Flask, you first have to know about web development and Python – so you'll want a course that explains that background knowledge. Then, you'll want to practice – there's no point to learning Flask without having actual practice with it. You should find practice projects and virtual simulations where you can build projects in increasing complexity and get feedback on them.

Ready to upskill your team?

See how IT leaders fit this course into a team training plan, and what a plan costs for your team's size.