Skip to content

ClarkThan/flask-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flask-demo

准备

  • 更新代码: git pull origin 或者重新clone
  • 准备运行环境: cd flask-demo && pipenv install
  • 激活运行环境: pipenv shell
  • 准备数据库(也可单独创建): python 进入
    • from app import app, db
    • ctx = app.app_context(); ctx.push()
    • db.create_all()
    • ctx.pop()
  • 上一步成功的话, 当前目录会增加test.db文件
  • 运行程序: python app.py

用例(分别浏览器中访问如下链接)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published