上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 27 下一页
摘要: # 1 安装git # 2 再pycharm中配置,setting 》git >git.exe的地址 # 3 git clone >等同于下图 # 4 使用pycharm创建本地分支(见下图) # 5 拉取代码,如下图 # 6 push代码,如下图 # 3 # 4 # 5 阅读全文
posted @ 2020-07-21 19:31 耗油炒白菜 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 1 路飞项目头部组件 1.1 vue 路由跳转的方式 #html中路由跳转 <router-link to="/"> <img src="../assets/img/head-logo.svg" alt=""> </router-link> #js中控制路由跳转 this.$router.push( 阅读全文
posted @ 2020-07-20 21:18 耗油炒白菜 阅读(137) 评论(0) 推荐(0) 编辑
摘要: vue路由跳转有四种方式 router-link this.$router.push() (函数里面调用) this.$router.replace() (用法同push) this.$router.go(n) 一、不带参 1.1 router-link(在template中) <router-li 阅读全文
posted @ 2020-07-20 18:19 耗油炒白菜 阅读(244) 评论(0) 推荐(0) 编辑
摘要: Abstract base classes 如果你想把某些公共信息添加到很多 model 中,抽象基类就显得非常有用。你编写完基类之后,在 Meta 内嵌类中设置 abstract=True ,该类就不能创建任何数据表。然而如果将它做为其他 model 的基类,那么该类的字段就会被添加到子类中。抽象 阅读全文
posted @ 2020-07-20 10:55 耗油炒白菜 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 目录 跨域请求 一 同源策略 同源策略(Same origin policy)是一种约定,它是浏览器最核心也最基本的安全功能,如果缺少了同源策略,则浏览器的正常功能可能都会受到影响。可以说Web是构建在同源策略基础之上的,浏览器只是针对同源策略的一种实现 请求的url地址,必须与浏览器上的url地址 阅读全文
posted @ 2020-07-18 15:36 耗油炒白菜 阅读(886) 评论(0) 推荐(0) 编辑
摘要: Response封装 utils/response.py from rest_framework.response import Response class APIResponse(Response): def __init__(self, status=100, msg='success', h 阅读全文
posted @ 2020-07-17 21:44 耗油炒白菜 阅读(210) 评论(0) 推荐(0) 编辑
摘要: # 每个python项目,都应该有个requirement.txt >项目依赖的模块 安装需要的工具包 # pip3 install freeze requirement.txt的生成 pycharm的terminal终端使用: # pip3 freeze >requirement.txt #生成 阅读全文
posted @ 2020-07-17 19:09 耗油炒白菜 阅读(640) 评论(0) 推荐(0) 编辑
摘要: 目录 1 重构项目目录 2 配置开发环境 准备: # 创建虚拟环境 mkvirtualenv -p python3 luffy # 进入虚拟环境 workon luffy # 安装django环境 pip install django==2.2.2 # 基于虚拟环境创建项目(不要再pycharm中选 阅读全文
posted @ 2020-07-16 19:34 耗油炒白菜 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 介绍 """ 1、采用国内源,加速下载模块的速度 2、常用pip源: -- 豆瓣:https://pypi.douban.com/simple -- 阿里:https://mirrors.aliyun.com/pypi/simple 3、加速安装的命令: -- >: pip install -i h 阅读全文
posted @ 2020-07-16 13:25 耗油炒白菜 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 目录: 1 缓存介绍 2 Django中的6种缓存方式 3 Django6种缓存的配置 3.1 开发调试 3.2 内存缓存 3.3 文件缓存 3.4 数据库缓存 3.5 Memcache缓存(使用python-memcache模块链接memcache) 3.6 Memcache缓存(使用pylibm 阅读全文
posted @ 2020-07-15 23:13 耗油炒白菜 阅读(151) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 27 下一页