Visão Geral
O Curso Developing Web Applications with Flask, ensina os desenvolvedores Python a criar aplicativos da Web profissionais com o microframework Flask.
Objetivo
Após realizar este Curso Developing Web Applications with Flask você será capaz de:
- Crie aplicativos Flask completos
- Trabalhar com dados de sessão
- Projete modelos Jinja usando herança
- Integrar um banco de dados SQLite
- Testar e depurar aplicativos Flask
Pre-Requisitos
- Todos os participantes devem ter habilidades básicas de programação em Python e uma compreensão dos fundamentos do HTML.
Materiais
Inglês/Português/Lab Prático
Conteúdo Programatico
Introduction
An Overview of Flask
- Origins and purpose
- Views, controllers, but no models
- What Flask can and cannot do
Diving Right In
- A simple application
- Configuring routes
- Defining view functions
- Using templates
- Deploying the application
Simple Views
- HTTP Methods
- Returning content
- Templates and variables
Organizing the Application
- Configuring routes
- Static files
- Configuration
- Context locals
- Sessions
Integrating a SQLite Database
- The g (global) object
- Creating a table
- Inserting rows
- Making queries
- Walkthrough of minor changes necessary for integrating other databases (SQL Server, Oracle, MySQL, etc.)
Jinja Templates
- The big picture
- Simple syntax
- Block statements
- Loading and rendering
- Inheritance
- Advanced syntax
- Filters and tests
HTTP Responses
- String responses
- Setting the status code
- Getting the response object
- Adding response headers
HTML Forms
- Simple forms
- Form submission
- Retrieving user data
- Re-submitting forms
Advanced Views
- Redirects
- Auto-escaping HTML
- Message flashing
- Built-in decorators
Error Handling
- Handling an unrouted URL
- Aborting a page view
- Customizing the error page
Testing and Debugging
- Using unittest
- Simple tests
- Accessing sessions
- Mocking resources
Advanced Topics
- Custom filters and tests
- Class-based views
- Support for JSON
- Blueprints
TENHO INTERESSE