def register_extensions(app): bcrypt.init_app(app) db.init_app(app) csrf_protect.init_app(app) login_manager.init_app(app) debug_toolbar.init_app(app) migrate.init_app(app, db) bootstrap.init_app(app)
def create_app(config): app = ApiFlask(__name__) app.config.from_object(config) db.init_app(app) login_manager.init_app(app) return app