2010-04-18 13:35:40 +02:00
|
|
|
.. _patterns:
|
|
|
|
|
|
|
|
|
|
Patterns for Flask
|
|
|
|
|
==================
|
|
|
|
|
|
|
|
|
|
Certain things are common enough that the changes are high you will find
|
|
|
|
|
them in most web applications. For example quite a lot of applications
|
|
|
|
|
are using relational databases and user authentication. In that case,
|
|
|
|
|
changes are they will open a database connection at the beginning of the
|
|
|
|
|
request and get the information of the currently logged in user. At the
|
|
|
|
|
end of the request, the database connection is closed again.
|
|
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
|
:maxdepth: 2
|
|
|
|
|
|
|
|
|
|
packages
|
|
|
|
|
sqlite3
|
|
|
|
|
sqlalchemy
|
2010-04-24 20:36:06 +02:00
|
|
|
fileuploads
|
2010-04-25 18:55:01 +02:00
|
|
|
caching
|
|
|
|
|
viewdecorators
|
2010-04-19 02:22:59 +02:00
|
|
|
wtforms
|
2010-04-18 13:35:40 +02:00
|
|
|
templateinheritance
|
|
|
|
|
flashing
|
2010-04-19 15:39:07 +02:00
|
|
|
jquery
|