pip install pipenv
- 创建环境
pipenv install
- 进入环境
pipenv shell
- 安装环境
pip install -r requirements.txt
- 查看路由
flask routes
- windows:https://www.cnblogs.com/coodyz/p/13410502.html
- linux:https://docs.mongodb.com/manual/tutorial/install-mongodb-on-red-hat
pipenv shell
- 更改flask-admin源码,路径为
pythonPath\Lib\site-packages\flask_admin\templates\bootstrap2\admin\static.html
, 将'admin.static'改为'dbadmin.static' celery worker -A celery_worker.celery --loglevel=INFO --without-gossip --without-mingle --without-heartbeat -Ofair -P gevent
- 新开一个窗口运行
pipenv shell
flask run --port=80 --host=0.0.0.0
- 使用let声明变量。
- 连续个变量声明应采用如下形式
let value1,
value2;
- 因为使用了CSRF防御模块,数据请求前应发送CSRF令牌或者随表单一起发送。