0%

5.8.1 创建表

首先,我们要让 Flask-SQLAlchemy 根据模型类创建数据库。方法是使用 db.create_all()
函数:
(venv) $ python hello.py shell

阅读全文 »

1
2
3
4
5
6
7
8
9
10
11
12
13
14
使用.gitignore文件删除掉已经提交的文件
 
顺序依次执行如下命令:

First commit any outstanding code changes, and then, run this command:

git rm -r --cached .
This removes any changed files from the index(staging area), then just run:

git add .
Commit it:

git commit -m ".gitignore is now working"
最后提交到远程仓库,会发现.gitignore文件起作用了。