# python-flask-watchlist **Repository Path**: luodengxiong/python-flask-watchlist ## Basic Information - **Project Name**: python-flask-watchlist - **Description**: Python 学习 flask 框架示例 - **Primary Language**: Python - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-01-14 - **Last Updated**: 2023-02-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Watchlist Example application for flask tutorial "[Flask 入门教程](http://helloflask.com/tutorial)". Demo: http://watchlist.helloflask.com ![Screenshot](http://helloflask.com/screenshots/watchlist.png) ## Installation clone: ``` $ git clone https://github.com/greyli/watchlist.git $ cd watchlist ``` create & active virtual enviroment then install dependencies: ``` $ python -m venv env # use `virtualenv env` for Python2, use `python3 ...` for Python3 on Linux & macOS $ source env/bin/activate # use `env\Scripts\activate` on Windows ``` ### 安装 flask ``` #激活虚拟环境后,使用下面的命令来安装 Flask: #(env) $ pip install flask # 再执行 requirements 安装 $ pip install -r requirements.txt ``` generate fake data then run: ``` $ flask forge ``` ``` # 如果出现报错 TypeError: required field "type_ignores" missing from Module # 解决办法:升级 Werkzeug==1.0.1 ``` ### 生成管理账户 ``` $ flask admin Username: admin Password: Repeat for confirmation: Updating user... Done. ``` ###运行 ``` $ flask run * Running on http://127.0.0.1:5000/ ``` ## License This project is licensed under the MIT License (see the [LICENSE](LICENSE) file for details). ## 在线上运行 ``` 到这个网站去运行: https://www.pythonanywhere.com/ ```