摘要: 装docker 安装docker:brew cask install docker 查看版本:docker -- version 查看信息:docker info docker kill xxx docker start :启动一个或多个已经被停止的容器 docker stop :停止一个运行中的容 阅读全文
posted @ 2020-09-06 21:21 tour8 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 1、模糊查询:req_content存储为一个字符串 db.getCollection('xxx').find({"req_content":{$regex:"\"brandId\":\"127896\""}}) 2、列表查询:dish_ids存储为一个列表 db.getCollection('xx 阅读全文
posted @ 2020-09-06 21:17 tour8 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 1、子应用配置url 子应用里创建urls.py 主应用urls.py包含子应用的路由 2、只构建子应用的models python3 manage.py makemigrations xxx # xxx为子应用名称 python3 manage.py migrate xxx 3、 FBV(func 阅读全文
posted @ 2020-09-06 21:05 tour8 阅读(286) 评论(0) 推荐(0) 编辑