def register_extensions(app): bootstrap.init_app(app) db.init_app(app) ckeditor.init_app(app) moment.init_app(app) login_manager.init_app(app) csrf.init_app(app)
def register_extensions(app): bootstrap.init_app(app) db.init_app(app) login_manager.init_app(app) csrf.init_app(app) ckeditor.init_app(app) mail.init_app(app) moment.init_app(app) toolbar.init_app(app) migrate.init_app(app, db)
def register_extensions(app): bootstrap.init_app(app) db.init_app(app) login_manager.init_app(app) csrf.init_app(app) csrf.exempt(upload_bp) ckeditor.init_app(app) mail.init_app(app) moment.init_app(app) whooshee.init_app(app) # toolbar.init_app(app) migrate.init_app(app, db)
def register_extensions(app): """ 注册第三方扩展 :param app: :return: """ bootstrap.init_app(app) db.init_app(app) ckeditor.init_app(app) moment.init_app(app) login_manager.init_app(app) csrf.init_app(app) migrate.init_app(app,db)