09 2020 档案
摘要:https://www.chriscalender.com/tag/mysql50lostfound/ 1.whereis mysql 可以查看mysql位置 2.编辑/etc/mysql/my.cnf 添加下面内容 [mysqld] ignore-db-dir=lost+found mysql>
阅读全文
摘要:在flask中使用ORM sqlchemy 1.新建modles.py. 如果已有数据表,https://www.devmashup.com/generating-flask-sqlalchemy-models-with-flask-sqlacodegen/ 用flask-sqlacodegen来转
阅读全文
摘要:一. flask做restfulapi,使用sqlachemy连接查询数据库,marshmallow解析数据,flask-restful响应 1. flask-sqlachemy需要模型类,根据已有的数据表生成models.py可以使用flask-sqlacodegen https://www.to
阅读全文
摘要:一. oss如果是商品图片等公共文件,要设置成公共读,其他情况设置成私有 二. python flask框架上传文件到oss class UploadAtt(Resource): @jwt_required def post(self): file = request.files.get('file
阅读全文

浙公网安备 33010602011771号