forked from orbit-oss/flask
Merge branch '1.0-maintenance'
This commit is contained in:
commit
3b45b82ec2
13 changed files with 68 additions and 57 deletions
|
|
@ -149,7 +149,7 @@ Register with the Application
|
|||
-----------------------------
|
||||
|
||||
The ``close_db`` and ``init_db_command`` functions need to be registered
|
||||
with the application instance, otherwise they won't be used by the
|
||||
with the application instance; otherwise, they won't be used by the
|
||||
application. However, since you're using a factory function, that
|
||||
instance isn't available when writing the functions. Instead, write a
|
||||
function that takes an application and does the registration.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue