Introduction to Flask Training

This Introduction to Flask training class teaches the fundamental concepts to build web applications using the Python Flask framework.

The course goes through a step-by-step process of setting up your environment, introducing Flask, and then moves to exploring the SQL language, using the popular MySQL database, and finally showing you how to develop a blogging application.

The course is very hands on, teaching the concepts as students build, in an interactive way, two different web applications.

The course requires some basic knowledge of Python and it will be taught using Python 3. We also encourage students to come with a laptop with the Docker client installed, which is the easiest method to set up the development environment. If students know how to install Python and MySQL locally, they're welcome to use that as well.

Goals
  1. Learn to effectively develop a Flask application.
  2. Learn to use databases in a Flask web application using an Object Relational Mapper (ORM).
  3. Learn to safely store data using Flask sessions.
  4. Learn to organize your application in modules.
  5. Learn to work with WTForms.
  6. Learn to do database migrations.
  7. Learn to handle image uploading and resizing using Flask-Uploads.
  8. Learn to write effective Unit Tests in Flask.
Outline
  1. Introduction
    1. What Is Flask
    2. Why Use Flask?
  2. Installing Flask
    1. Setting Up Our Development Environment
      1. Locally Using our Operating System
        1. Introduction to virtualenv and pip
      2. Locally Using Docker
      3. Using a Cloud-Based IDE
    2. The Code Editor
    3. Installing Flask
  3. Introduction to Flask
    1. Our Initial App
    2. Debugging
    3. Routing
    4. Using url_for
    5. The GET method
    6. The POST method
    7. Introduction to Templates
    8. The Login Template
    9. The Login Function
    10. Redirect After POST
    11. Flash Messages
    12. Better HTML
    13. Template Inheritance
    14. Calling Block Super
    15. Introduction to Cookies
    16. The Static Folder
    17. Introduction to Sessions
    18. Logging
    19. Introduction to MySQL
    20. Our First Table
  4. Our First Flask Application: A Flask Blog
    1. The Requirements.txt File
    2. Introduction
    3. The Basic Structure
    4. Setting up the ORM
    5. The Author Model
    6. Interacting with the ORM
    7. The Base Template and Bootstrap
    8. Introduction to WTForms
    9. Handling Form Errors
    10. Template Macros
    11. The Blog Model and Form
    12. Blog Admin and Setup Templates
    13. Blog Creation Database
    14. Author Login
    15. Our First Decorator
    16. Introduction to Migrations
    17. More Secure Passwords
    18. Checking “Is Author”
    19. The Post and Category Models
    20. Post Migration and Testing
    21. Introduction to Markdown
    22. Blog Post Form
    23. Saving the Post to the Database
    24. The Article View
    25. List Articles View
    26. Creating a Footer
    27. Pagination
    28. Setting up Flask-Uploads
    29. Adding Images to Blog Posts
    30. Displaying the Image in the Article
    31. Deleting an Article
    32. Editing an Article
  5. Unit Testing
    1. Introduction to Unit Testing
    2. Create Blog Test
    3. User Tests
Class Materials

Each student in our Live Online and our Onsite classes receives a comprehensive set of materials, including course notes and all the class examples.

Class Prerequisites

Experience in the following is required for this Python class:

  • Some programming experience.

Experience in the following would be useful for this Python class:

  • Python programming experience.
Prerequisite Courses

Courses that can help you meet these prerequisites:

Training for your Team

Length: 2 Days
  • Private Class for your Team
  • Online or On-location
  • Customizable
  • Expert Instructors

What people say about our training

Instructor was FANTASTIC!
Pamela Gamble
Peri Formwork
Wonderful! Tailored to my learning style! Best external class I have attended in a long time!
Deborah Dean
Pomeroy IT Solutions
The Customer Service Training provided by Webucator was an excellent way for our team to evaluate our performance. It showed us ways we can improve and helped us acknowledge areas in which we already provide great service. Everyone left the meeting with at least two action items they could implement right away.
Marci Kirk
American Veterinary Medical Association
This is a very informative and easy class to learn!
Annette Rangel
Parkland Hospital

No cancelation for low enrollment

Certified Microsoft Partner

Registered Education Provider (R.E.P.)

GSA schedule pricing

62,275

Students who have taken Instructor-led Training

11,814

Organizations who trust Webucator for their Instructor-led training needs

100%

Satisfaction guarantee and retake option

9.29

Students rated our trainers 9.29 out of 10 based on 29,172 reviews

Contact Us or call 1-877-932-8228