# Flask微信小程序全栈 **Repository Path**: Actoress/Flask ## Basic Information - **Project Name**: Flask微信小程序全栈 - **Description**: 学习项目 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-12-06 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## Flask项目 如果项目中已经有requirements.txt文件 可以直接使用 pip install -r requirements.txt 可以快速安装列表中没有的文件 ## 启动项目 >export ops_config=local && python manager.py runserver ## flask-sqlacodegen 生成对应表的 ORM 1.先安装flask-sqlacodegen >pip install flask-sqlacodegenU 2.使用命令行生成对应表的ORM >flask-sqlacodegen 'mysql://root:123456@127.0.0.1/food_db' --tables user --outfile "common/models/User.py" --flask ## MySQL相关 远程连接数据库,连接不上 1.启动数据库服务 > mysql -uroot -p 2.切换到系统数据库 > use mysql; 3.设置远程连接为开启 > update mysql.`user` set Host = '%' where User = 'root' and Host = 'localhost'; 4.刷新权限或者重启服务 > flush privileges; || sudo service mysqld restart;