1 Star 0 Fork 0

chuan / flask_bl

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
readme.md
db.session.add(goods)
    # 主动执行flush操作, 立即执行SQL操作(数据库同步)
    db.session.flush()

    # Goods.query.count()  # 查询操作会自动执行flush操作
    db.session.commit()  # 提交会话会自动执行flush操作
flush执行之后,仅仅是将数据临时刷新进数据库内存,并未真实写入磁盘文件,在commit提交后才真正写入磁盘

命令

启动项目

py app.py runserver

es6 转 es5

页面本人编写的代码,都是 to es5 5 之后再引用至模板, 所以修改 /js/ 下的代码后需手动更新

npm run toes5

非常用

初始化模型

py app.py db init

更新模板

py app.py db migrate 

提交更新

py app.py db upgrade 

Comments ( 0 )

Sign in for post a comment

About

个人博客项目,完成, 归档提交 spread retract
Python and 6 more languages
GPL-3.0
Cancel

Releases

No release

Contributors

All

Activities

load more
can not load any more
Python
1
https://gitee.com/chuancode/flask_bl.git
git@gitee.com:chuancode/flask_bl.git
chuancode
flask_bl
flask_bl
new-bt

Search