Welcome to Flask¶
Welcome to Flask’s documentation. This documentation is divided into different parts. I recommend that you get started with Installation and then head over to the Quickstart. Besides the quickstart, there is also a more detailed Tutorial that shows how to create a complete (albeit small) application with Flask. If you’d rather dive into the internals of Flask, check out the API documentation. Common patterns are described in the Patterns for Flask section.
Flask depends on two external libraries: the Jinja2 template engine and the Werkzeug WSGI toolkit. These libraries are not documented here. If you want to dive into their documentation, check out the following links:
User’s Guide¶
This part of the documentation, which is mostly prose, begins with some background information about Flask, then focuses on step-by-step instructions for web development with Flask.
- Foreword
- Foreword for Experienced Programmers
- Installation
- Quickstart
- Tutorial
- Templates
- Testing Flask Applications
- Logging Application Errors
- Debugging Application Errors
- Configuration Handling
- Signals
- Pluggable Views
- The Application Context
- The Request Context
- Modular Applications with Blueprints
- Flask Extensions
- Working with the Shell
- Patterns for Flask
- Larger Applications
- Application Factories
- Application Dispatching
- Using URL Processors
- Deploying with Distribute
- Deploying with Fabric
- Using SQLite 3 with Flask
- SQLAlchemy in Flask
- Uploading Files
- Caching
- View Decorators
- Form Validation with WTForms
- Template Inheritance
- Message Flashing
- AJAX with jQuery
- Custom Error Pages
- Lazily Loading Views
- MongoKit in Flask
- Adding a favicon
- Streaming Contents
- Deferred Request Callbacks
- Deployment Options
- Becoming Big
API Reference¶
If you are looking for information on a specific function, class or method, this part of the documentation is for you.
- API
- Application Object
- Blueprint Objects
- Incoming Request Data
- Response Objects
- Sessions
- Session Interface
- Test Client
- Application Globals
- Useful Functions and Classes
- Message Flashing
- Returning JSON
- Template Rendering
- Configuration
- Extensions
- Stream Helpers
- Useful Internals
- Signals
- Class-Based Views
- URL Route Registrations
- View Function Options
Additional Notes¶
Design notes, legal information and changelog are here for the interested.