Disarmed a sentence a bit
This commit is contained in:
parent
135d090c0f
commit
82f99f42a8
1 changed files with 1 additions and 2 deletions
|
|
@ -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__)
|
||||
|
|
@ -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`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue