Skip to content
Myr

index.rst

This file

Path

docs/patterns/index.rst

40 lines · 961 bytes

Last changed by

Merge branch '2.2.x'David Lordbefore adoption87584e8

History of this file

Take it

The walk stopped after 200 commits: lines older than 41aaaf7 point at it.

clean up unused function from prefixed_env prDavid Lordbefore adoption41aaaf7

lines 1–29why, 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 sqlite323 sqlalchemy24 fileuploads25 caching26 viewdecorators27 wtforms28 templateinheritance29 flashing

Merge branch '2.1.x'David Lordbefore adoptiondcd1a1e

line 30why, one step back
30 javascript

clean up unused function from prefixed_env prDavid Lordbefore adoption41aaaf7

lines 31–40why, one step back
31 lazyloading
32 mongoengine33 favicon34 streaming35 deferredcallbacks36 methodoverrides37 requestchecksum38 celery39 subclassing40 singlepageapplications