From 43fd86a2ceed5f3c78f8a4c965e82dcf0ec86afa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E8=83=9C=E8=88=9F?= <1650473152@qq.com> Date: Thu, 6 Apr 2023 16:13:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 4 ++-- README.md | 5 +++-- requirement.txt | 2 -- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index aabeb25..c364ce7 100644 --- a/.gitignore +++ b/.gitignore @@ -116,5 +116,5 @@ dmypy.json #ide .idea/ -## 迁移文件 -#migrations/ \ No newline at end of file +# 迁移文件 +migrations/ \ No newline at end of file diff --git a/README.md b/README.md index 746959a..22c1399 100644 --- a/README.md +++ b/README.md @@ -106,7 +106,6 @@ pip install -r requirement\dev.txt #### 修改配置 ```python -.env # MySql配置信息 MYSQL_HOST=127.0.0.1 MYSQL_PORT=3306 @@ -137,7 +136,9 @@ python -m venv venv ```bash # 初 始 化 数 据 库 - +flask init +flask migrate +flask upgrade flask init ``` diff --git a/requirement.txt b/requirement.txt index 9924434..34a80f2 100644 --- a/requirement.txt +++ b/requirement.txt @@ -9,8 +9,6 @@ marshmallow-sqlalchemy PyMySQL psutil Flask-Mail -sqlparse Pillow -python-dotenv validators cryptography \ No newline at end of file