Skip to content
Myr

index.rst

This file

Path

docs/patterns/index.rst

42 lines · 985 bytes

Last changed by

Merge branch '2.1.x'David Lordbefore adoptiondcd1a1e

History of this file

Take it

1Patterns for Flask2==================34Certain features and interactions are common enough that you will find5them in most web applications. For example, many applications use a6relational database and user authentication. They will open a database7connection at the beginning of the request and get the information for8the logged in user. At the end of the request, the database connection9is closed.1011These types of patterns may be a bit outside the scope of Flask itself,12but Flask makes it easy to implement them. Some common patterns are13collected in the following pages.1415.. toctree::16   :maxdepth: 21718   packages19   appfactories20   appdispatch21   urlprocessors22   distribute23   fabric24   sqlite325   sqlalchemy26   fileuploads27   caching28   viewdecorators29   wtforms30   templateinheritance31   flashing32   javascript33   lazyloading34   mongoengine35   favicon36   streaming37   deferredcallbacks38   methodoverrides39   requestchecksum40   celery41   subclassing42   singlepageapplications