Description
In this course, you will :
- Discover how to write a Flask view function.
- Learn how to make HTML pages.
- Investigate web forms and user input.
- Be able to write code for a Flask web application by the end of this course.
Syllabus :
1. First Steps
- Introducing Flask
- Demo: Installing Flask and Starting a Project
- Demo: Creating Your First Web Page with Flask
- Demo: Running the Flask Development Server
- Demo: If the Server Doesn't Run
- Demo: Flask and the Flow of Control
- Demo: The Flask Debug View
- Demo: How Flask Maps URLs to View Functions
2. Understanding the Model Template View Pattern
- Introducing Model-Template-View
- Demo: Jinja Templates
- Demo: Jinja Variables
- Review: Jinja Templates
- Demo: A Model Layer
- Review: Model-Template-View
3. Adding Logic to Your Application
- Overview: Logic in Views and Templates
- Demo: Parameters in URLs
- Demo: Building Links in Templates with url_for
- Demo: Jinja If Statements
- Demo: Jinja For Loops
- Demo: Serving a REST API
- Review: Logic in Views and Templates
4. Adding User Interaction
- Intro: User Interaction with Web Forms
- Demo: Jinja Form Templates
- Demo: Handling POST Requests in the View
- Demo: Redirecting after Handling Form Submit
- Exercise: Deleting Cards
- A Note About Forms and Security
5. Apply Styling and Jinja Inheritance
- Intro: Template Inheritance and Applying CSS
- Demo: Adding a Stylesheet and Applying It to an HTML Page
- Demo: Jinja Template Inheritance
6. Deploying a Flask Application
- Intro: Deploying a Flask Application
- Demo: Deploying Flask on Linux with Gunicorn
- Review: Deploying Flask