2010-04-18 13:35:40 +02:00
|
|
|
.. _patterns:
|
|
|
|
|
|
|
|
|
|
Patterns for Flask
|
|
|
|
|
==================
|
|
|
|
|
|
2010-06-10 18:07:14 +01:00
|
|
|
Certain things are common enough that the chances are high you will find
|
2010-04-18 13:35:40 +02:00
|
|
|
them in most web applications. For example quite a lot of applications
|
|
|
|
|
are using relational databases and user authentication. In that case,
|
2010-06-10 18:07:14 +01:00
|
|
|
chances are they will open a database connection at the beginning of the
|
2010-04-18 13:35:40 +02:00
|
|
|
request and get the information of the currently logged in user. At the
|
|
|
|
|
end of the request, the database connection is closed again.
|
|
|
|
|
|
2010-05-03 12:22:27 +02:00
|
|
|
There are more user contributed snippets and patterns in the `Flask
|
|
|
|
|
Snippet Archives <http://flask.pocoo.org/snippets/>`_.
|
|
|
|
|
|
2010-04-18 13:35:40 +02:00
|
|
|
.. toctree::
|
|
|
|
|
:maxdepth: 2
|
|
|
|
|
|
|
|
|
|
packages
|
2010-05-27 17:55:57 +02:00
|
|
|
appfactories
|
2010-05-17 01:41:57 +02:00
|
|
|
distribute
|
2010-07-06 16:07:13 +02:00
|
|
|
fabric
|
2010-04-18 13:35:40 +02:00
|
|
|
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
|
2010-05-17 23:14:50 +02:00
|
|
|
errorpages
|
2010-05-26 14:49:01 +02:00
|
|
|
lazyloading
|
2010-06-27 17:38:39 +08:00
|
|
|
mongokit
|