Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.3k views
in Technique[技术] by (71.8m points)

SQLAlchemy 、flask-SQLAlchemy 怎么共用模型?

我之前在python命令行程序中使用SQLAlchemy 创建了一套模型类,想在flask中使用,flask-SQLAlchemy怎么使用这些模型类呢?
我不想维护两套模型,请问有什么办法共用模型类?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...