
Paths
Building Web Applications with Flask
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
2h 4m
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
- Course Overview
- First Steps
- Understanding the Model Template View Pattern
- Adding Logic to Your Application
- Adding User Interaction
- Apply Styling and Jinja Inheritance
- Deploying a Flask Application
Creating and Processing Web Forms with Flask
1h 37m
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
- Course Overview
- Creating Web Form Views and Templates
- Processing Form Data
- Securing the Form Input
- Improving the User Experience
Coming Soon
Creating a Model Layer for Flask
Coming Soon
Flask Users, Sessions, and Authentication
1h 35m
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
- Course Overview
- Authenticating with Sessions
- Authenticating with Cookies
- Authorizing by User Roles
- Managing User Accounts
Structuring a Growing Flask Application
1h 38m
Description
Once you're familiar with creating Flask applications, you need to learn how to structure them in a proper way. In this course, Structuring a Growing Flask Application, you’ll learn how to make your application productionized. First, you’ll explore and learn about design architectures with application factory and blueprints. Next, you’ll discover how to group routes with URL processors and class-based views. This can be further optimized with the help of request hooks and signals. Finally, you’ll learn how to implement caching and custom CLI commands. When you’re finished with this course, you’ll have the skills and knowledge of structuring applications required to make it grow and scale in production.
Table of contents
- Course Overview
- Implementing Modular Design Patterns
- Structuring Routes and Views
- Managing Signals and Callbacks
- Productionizing an Application
Building Reliable Flask Applications
1h 24m
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
- Course Overview
- Revisiting the Flask Basics
- Testing Flask Applications
- Creating View Functions with Custom Error Pages
- Logging in Flask