Browse Source

Disarmed a sentence a bit

pull/977/head
Armin Ronacher 11 years ago
parent
commit
82f99f42a8
  1. 3
      docs/patterns/appfactories.rst

3
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. extension object does not initially get bound to the application.
Using `Flask-SQLAlchemy <http://pythonhosted.org/Flask-SQLAlchemy/>`_, Using `Flask-SQLAlchemy <http://pythonhosted.org/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): def create_app(config_filename):
app = Flask(__name__) app = Flask(__name__)
@ -82,7 +82,6 @@ and in your application.py (or equivalent)::
from yourapplication.model import db from yourapplication.model import db
db.init_app(app) db.init_app(app)
Using this design pattern, no application-specific state is stored on the Using this design pattern, no application-specific state is stored on the
extension object, so one extension object can be used for multiple apps. extension object, so one extension object can be used for multiple apps.
For more information about the design of extensions refer to :doc:`/extensiondev`. For more information about the design of extensions refer to :doc:`/extensiondev`.

Loading…
Cancel
Save