https://github.com/1111mp/flask_init
An initialization project of flask.
https://github.com/1111mp/flask_init
Last synced: over 1 year ago
JSON representation
An initialization project of flask.
- Host: GitHub
- URL: https://github.com/1111mp/flask_init
- Owner: 1111mp
- Created: 2020-01-03T02:15:23.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-09-03T14:47:28.000Z (almost 2 years ago)
- Last Synced: 2025-02-13T14:25:01.622Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 1.19 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# An initialization project of flash
## run project
pipenv 使用教程:[pipenv](https://crazygit.wiseturtles.com/2018/01/08/pipenv-tour)
安装 eventlet,flask_socketio使用该库支持websocket
配置vscode的settings.json文件的python.venvPath
`pipenv --venv`
详见 [venvPath](https://segmentfault.com/a/1190000017558652)
```
pipenv install
pipenv shell and flask run
or
F5
```
通过
```
pipenv lock -r > requirements.txt
```
生成与 pip 相同格式的依赖管理文件。
## Database Initialization
```
flask shell
flask db init
flask db migrate
flask db upgrade
error: Can't locate revision identified by '91eb2489ed74' 参考:https://blog.csdn.net/Super_Tiger_Lee/article/details/77772752
```
python 中使用 protocol buffer:[参考](https://www.jianshu.com/p/b723053a86a6)
protoc: command not found (Linux Mac Windows),解决方法:[stackoverflow](https://stackoverflow.com/questions/47704968/protoc-command-not-found-linux)