nersle 最近的时间轴更新
nersle

nersle

V2EX 第 149523 号会员,加入于 2015-12-01 19:40:05 +08:00
出 aws 5000$ credit
二手交易  •  nersle  •  2020-09-08 13:08:49 PM
出 5000$ credit
二手交易  •  nersle  •  2020-09-08 13:08:19 PM  •  最后回复来自 nersle
2
Python Flask-SQLAlchemy 使用疑惑
Python  •  nersle  •  2015-12-30 16:55:47 PM  •  最后回复来自 florije
17
nersle 最近回复了
2015-12-30 15:35:50 +08:00
回复了 nersle 创建的主题 Python Python Flask-SQLAlchemy 使用疑惑
@janxin 配置了,没有用, SQL 语句也没有问题,确实插入数据库了
2015-12-30 13:08:31 +08:00
回复了 nersle 创建的主题 Python Python Flask-SQLAlchemy 使用疑惑
刚测试发现,或者重新运行 Flask 应用也行,真是好奇怪,修改一条记录,就得重新运行一次
2015-12-30 12:59:45 +08:00
回复了 nersle 创建的主题 Python Python Flask-SQLAlchemy 使用疑惑
@tanywei 怎么 flush ? commit 还不行么?
2015-12-30 12:08:05 +08:00
回复了 nersle 创建的主题 Python Python Flask-SQLAlchemy 使用疑惑
@florije Mysql 插入成功了....确实有数据
2015-12-30 12:07:34 +08:00
回复了 nersle 创建的主题 Python Python Flask-SQLAlchemy 使用疑惑
@saberlion MySQL 都插入成功了呢,只是需要在 model.py 的 main 函数中执行
```report = Report.query.filter(Report.tid==vulId).first()
再在 views.py 中运行
```report = Report.query.filter(Report.tid==vulId).first()
才会成功,求解
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2267 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 14ms · UTC 04:25 · PVG 12:25 · LAX 21:25 · JFK 00:25
Developed with CodeLauncher
♥ Do have faith in what you're doing.