flask 扩展文件extensions.py(flask 45)

2019-08-15 18:43:32 浏览数 (1)

from flask_bootstrap import Bootstrap from flask_ckeditor import CKEditor from flask_login import LoginManager from flask_mail import Mail from flask_moment import Moment from flask_sqlalchemy import SQLAlchemy from flask_wtf import CSRFProtect from flask_debugtoolbar import DebugToolbarExtension from flask_migrate import Migrate from flask_script import Manager

bootstrap = Bootstrap() db = SQLAlchemy() login_manager = LoginManager() csrf = CSRFProtect() ckeditor = CKEditor() mail = Mail() moment = Moment() toolbar = DebugToolbarExtension() migrate = Migrate() manager=Manager()

0 人点赞