RTD Training & Development

Flask Web Programming for Python Programmers

Call us on +44 (0)1225 66 72 72 or send us a message

Flask Web Programming for Python Programmers

4 days hands-on £1,940+VAT

Next scheduled date:
Monday September 4th, 2017 Enrol Now!

Outline

Flask Basics

  • Initialisation
  • Routing
  • View Functions
  • Static Files
  • Request/Response Cycle
  • Extensions

Templating

  • The Jinja2 Templating Engine
  • Variables
  • Control Structures
  • Links
  • Custom Error Pages

Web Forms

  • The Flask-WTF Extension
  • CSRF Protection
  • Form Classes
  • Form Processing
  • User Sessions

Databases

  • Python Database Frameworks
  • The Flask-SQLAlchemy Extension
  • Data Definition
  • Data Manipulation
  • Using Databases in View Functions

Email

  • The Flask-Mail Extension
  • Integrating Email
  • Asynchronous Sending

Application Structure

  • Directory Structure
  • Configuration Options
  • The Requirements File
  • The Launch Script
  • Unit Testing

Overview

Participants will gain a firm understanding of the essentials of the Flask framework and some of the most useful extensions to the framework.

Objectives

On successful completion of this course, participants will be able to:

  • Write, test and deploy Flask applications
  • Utilise the Jinja2 templating engine in Flask applications
  • Create interactive web applications with Flask-WTF
  • Access databases with Flask-SQLAlchemy
  • Send emails with Flask-Mail

Audience

This course is intended for programmers and web designers who wish to create rich web applications using the Flask micro-framework.

Prerequisites

Some familiarity with HTML would be helpful but otherwise this course assumes no prior knowledge.

Participants with no prior knowledge of Python should consider our Introduction to Flask Programming course