Building Web Applications with Flask

Paths

Building Web Applications with Flask

Authors: Reindert-Jan Ekker, Mateo Prigl, Abdul Rehman

Flask is a micro web framework written in Python that does not require particular tools or libraries. It does not ship with a database layer, form validation, or any other... Read more

What You Will Learn

  • Set up and configure a Flask project
  • Construct routes
  • Write view functions
  • Build templates
  • Manage sessions and cookies
  • Test your Flask application
  • Create forms
  • Use hooks and signals
  • Log errors
  • Use flask-sqlalchemy to create a model layer
  • Use flask-login to setup authorization

Pre-requisites

  • Python

Building Web Applications with Flask

In this path you will learn how to set up a Flask environment and build a reliable Flask application. You will dive into creating forms, routing, sessions, and authentication as well as how to manage your growing app.

Flask: Getting Started

by Reindert-Jan Ekker

Nov 9, 2019 / 2h 4m

2h 4m

Start Course
Description

Flask is very popular in the Python world because of its friendly and minimalistic approach. It allows you to create an application with a tiny amount of code (and work). In this course, Flask: Getting Started, I will show you the basics of Flask to get you started with Python web development. First, you will learn how to create a Flask view function. Next, you will discover how to create html pages. Finally, you will explore web forms and handling user input. By the end of this course, you'll be able to write code for a Flask web application.

Table of contents
  1. Course Overview
  2. First Steps
  3. Understanding the Model Template View Pattern
  4. Adding Logic to Your Application
  5. Adding User Interaction
  6. Apply Styling and Jinja Inheritance
  7. Deploying a Flask Application

Creating and Processing Web Forms with Flask

by Mateo Prigl

Feb 4, 2020 / 1h 37m

1h 37m

Start Course
Description

At the core of building modern web applications is a thorough knowledge of web forms. In this course, Creating and Processing Web Forms with Flask, you'll learn how to build functional forms and process their input. First, you'll see how to create the templates and views. Next, you'll explore processing the user input and making sure that the form data is safe from potential threats. Finally, you'll discover how to improve the user experience by adding error and flash messages, plus making the forms asynchronous with AJAX so users don't have to wait for the page to refresh. When you're finished with this course, you'll have a foundational knowledge of building web forms in Flask that will help you as you move forward to creating web applications with the Flask framework.

Table of contents
  1. Course Overview
  2. Creating Web Form Views and Templates
  3. Processing Form Data
  4. Securing the Form Input
  5. Improving the User Experience

Coming Soon

Creating a Model Layer for Flask

Coming Soon

by Ryan Kramer

Flask Users, Sessions, and Authentication

by Mateo Prigl

Aug 17, 2020 / 1h 35m

1h 35m

Start Course
Description

Most of the modern applications have some kind of an authentication system. In this course, Flask, Users, Sessions, and Authentication you’ll learn to implement this system in Flask. First, you’ll explore how to use cookies and sessions to login and sign up new users to the site. Next, you’ll discover how to implement cookie based “remember me” functionality and create user roles. Finally, you’ll learn how to allow users to reset their passwords and require the account confirmation over an email. When you’re finished with this course, you’ll have the skills and knowledge of managing sessions and users in Flask needed to implement a fully featured authentication system.

Table of contents
  1. Course Overview
  2. Authenticating with Sessions
  3. Authenticating with Cookies
  4. Authorizing by User Roles
  5. Managing User Accounts

Coming Soon

Structuring a Growing Flask Application

Coming Soon

by Mateo Prigl

Building Reliable Flask Applications

by Abdul Rehman

Sep 1, 2020 / 1h 24m

1h 24m

Start Course
Description

Flask is a micro-framework written in Python. It provides you with tools, libraries, and mechanics that allow you to build a web application quickly. Flask is very flexible in terms of dependencies and project structure, and this flexible nature makes the management of Flask challenging. In this course, Building Reliable Flask Applications, you will learn the important concepts to make your Flask applications more reliable. First, you will learn how to write unit tests for your Flask applications. Next, you will discover how to implement view functions and create customized error pages. Finally, you will explore Logging in Flask where we will talk about how to log useful information to the console stream and save in log files. When you are finished with this course, you will have the skills and knowledge of testing, logging, and debugging needed to manage Flask applications more effectively.

Table of contents
  1. Course Overview
  2. Revisiting the Flask Basics
  3. Testing Flask Applications
  4. Creating View Functions with Custom Error Pages
  5. Logging in Flask