Profile
User profile and story timeline
回复
-
· 2023-01-02T09:06:37Z接入数据库:1、在view.py中增加函数路由def association( ),引入association;2、在templates模版文件夹中增加associa-datatables.html文件;3、models.py文件中添加class Association(db.Model);4、要让FlaskSQLAlchemy根据模型类创建数据库。方法是使用db.create_all( )函数 p. 501 -
· 2023-01-02T09:07:59Z(venv)$python hello.py shell >>> from hello import db >>> db.create_all( )1