Skip to content
Myr

Updated design decisions. This fixes #63

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent d44b127 · Browse files · 2 files+23 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+23 added−0 removed

  • other:+23 added−0 removed

2 files+23 added−0 removed

modified:docs/design.rst+22 added
71 unmodified lines
72want to apply a WSGI middleware, just wrap it and you're done (though73there are better ways to do that so that you do not lose the reference74to the application object :meth:`~flask.Flask.wsgi_app`).7576Furthermore this design makes it possible to use a factory function to77create the application which is very helpful for unittesting and similar78things (:ref:`app-factories`).7980One Template Engine81-------------------8283Flask decides on one template engine: Jinja2. Why doesn't Flask have a
64 unmodified lines
148quick and easy to write a traditional web application.149150Also see the :ref:`becomingbig` section of the documentation for some151inspiration for larger applications based on Flask.152153154What Flask is, What Flask is Not155--------------------------------156157Flask will never have a database layer. It will not have a form library158or anything else in that direction. Flask itself just bridges to Werkzeug159to implement a proper WSGI application and to Jinja2 to handle templating.160It also binds to a few common standard library packages such as logging.161Everything else is up for extensions.162163Why is this the case? Because people have different preferences and164requirements and Flask could not meet those if it would force any of this165into the core. The majority of web applications will need a template166engine in some sort. However not every application needs a SQL database.167168The idea of Flask is to build a good foundation for all applications.169Everything else is up to you or extensions.
modified:CHANGES+1 added
17 unmodified lines
18 requests that do not pop the request stack for testing.19- because the Python standard library caches loggers, the name of20 the logger is configurable now to better support unittests.21- added `TESTING` switch that can activate unittesting helpers.22- the logger switches to `DEBUG` mode now if debug is enabled.2324Version 0.3.125-------------26
48 unmodified lines