diff --git a/docs/tutorial/database.rst b/docs/tutorial/database.rst index 934f6008..2a7e87c7 100644 --- a/docs/tutorial/database.rst +++ b/docs/tutorial/database.rst @@ -176,6 +176,7 @@ the end of the factory function before returning the app. app = ... # existing code omitted + # do not copy create_app function again, only add following from . import db db.init_app(app)