From 82f99f42a829b0cc71df92d54e613ce888d805bb Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Sun, 9 Feb 2014 13:35:38 +0000 Subject: [PATCH] Disarmed a sentence a bit --- docs/patterns/appfactories.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/patterns/appfactories.rst b/docs/patterns/appfactories.rst index 5eeff541..25a90212 100644 --- a/docs/patterns/appfactories.rst +++ b/docs/patterns/appfactories.rst @@ -61,7 +61,7 @@ It's preferable to create your extensions and app factories so that the extension object does not initially get bound to the application. Using `Flask-SQLAlchemy `_, -as an example, you should **not** do:: +as an example, you should not do something along those lines:: def create_app(config_filename): app = Flask(__name__) @@ -82,7 +82,6 @@ and in your application.py (or equivalent):: from yourapplication.model import db db.init_app(app) - Using this design pattern, no application-specific state is stored on the extension object, so one extension object can be used for multiple apps. For more information about the design of extensions refer to :doc:`/extensiondev`.