# app.py from main import app from controller.index import index as index_blueprint from controller.user import user as user_blueprint from controller.article import article as article_blueprint from controller.favorite import favorite as favorite_blueprint from controller.comment import comment as comment_blueprint from controller.admin import admin as admin_blueprint from controller.ucenter import ucenter as ucenter_blueprint from controller.ueditor import ueditor as ueditor_blueprint # app.register_blueprint(index_blueprint) app.register_blueprint(user_blueprint) app.register_blueprint(article_blueprint) app.register_blueprint(favorite_blueprint) app.register_blueprint(comment_blueprint) app.register_blueprint(admin_blueprint) app.register_blueprint(ucenter_blueprint) app.register_blueprint(ueditor_blueprint) if __name__ == '__main__': app.run(debug=True)