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

The walk stopped after 200 commits: lines older than 7c20611 point at it.

mkstemp returns a file descriptor (#3809)Viet Hung Nguyenbefore adoption7c20611

lines 1–31why, one step back
1Patterns for Flask
2==================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 flashing

Merge branch '2.1.x'David Lordbefore adoptiondcd1a1e

line 32why, one step back
32 javascript

mkstemp returns a file descriptor (#3809)Viet Hung Nguyenbefore adoption7c20611

lines 33–42why, one step back
33 lazyloading
34 mongoengine35 favicon36 streaming37 deferredcallbacks38 methodoverrides39 requestchecksum40 celery41 subclassing42 singlepageapplications