1 Star 0 Fork 1

xw12345/datamp

forked from 赵梓宏/datamp 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
app.py 1.37 KB
一键复制 编辑 原始数据 按行查看 历史
hbh 提交于 2021-10-16 22:16 . migrate的问题
from flask import Flask, make_response, jsonify
from flask_migrate import Migrate, MigrateCommand
from flask_script import Manager
from datamp import create_app
from ext import db
from datamp.user.models import UserRole,SystemFunctionType,FunctionTypeUserRoleAccess,SystemFunctionModule,\
SpecificTypeSystemFunctionModule,DataPoint,SystemFunctionModuleDataPoint,LearningGrade,LearningStage,SchoolType,\
SchoolInfo,ClassType,ClassInfo,RegisteredEducationalUserInfo,NormalRegisteredUserInfo,StudentInfo,\
SpecificSubject,SubjectType,SpecificSubjectType,CourseType,SpecificGradeCourse,SpecificGradeCourseType,\
SubjectRelatedCourse,TeacherInfo,CourseTeachingInfo,TeacherTeachingSubject,OtherCourseTeachingMethod,\
RevokeTokenModel
from datamp.data.models import TeachingMethod,LearningMethod,ConceptType,SpecificConceptualObject,\
SpecificTypeConceptualObject,ConceptualObjectAssociation,DataType,ModelType,EducationalModel,DecompositionMethod,\
ClassificationMethod
app = create_app()
manager = Manager(app=app)
# 命令工具
migrate = Migrate(app=app, db=db)
manager.add_command('db', MigrateCommand)
@manager.command
def init():
print('hello')
# # --记录错误日志--
# @app.errorhandler(Exception)
# def error_log(e):
# app.logger.error(traceback.format_exc())
# return '404'
if __name__ == '__main__':
print(app.url_map)
manager.run()
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xw_126754/datamp.git
git@gitee.com:xw_126754/datamp.git
xw_126754
datamp
datamp
test1016

搜索帮助

0d507c66 1850385 C8b1a773 1850385