Skip to content

Commit

Permalink
Disarmed a sentence a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Feb 9, 2014
1 parent 135d090 commit 82f99f4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/patterns/appfactories.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <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):
app = Flask(__name__)
Expand All @@ -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`.
Expand Down

0 comments on commit 82f99f4

Please sign in to comment.