在进行接口自动化测试时,有好多接口都基于登陆接口的响应值来关联进行操作的,在次之前试了很多方法,都没有成功,其实很简单用session来做。 1、在登陆接口创建一个全局session # -*- coding: utf-8 -*- import requests '''在登陆模块创建一个全局sess ...
分类:
编程语言 时间:
2020-09-24 21:37:22
阅读次数:
56
注: 注意文中的 sha-dow-socks 一、安装 # 更新本地已安装软件 sudo apt-get update sudo apt-get upgrade -y # 安装 python-pip、Sha-dow-socks sudo apt-get install python3-pip -y ...
分类:
系统相关 时间:
2020-09-24 21:32:26
阅读次数:
84
1、安装python3.5,git,PyQt5 , lxml 打开prompt,输入指令安装库: pip install PyQt5 pip install lxml 2、下载labelimg labelImg下载地址:https://github.com/tzutalin/labelImg.git ...
前言 Django的默认缓存是存在内存当中,重启服务缓存就失效了。 文章选择用redis做缓存,需要预先安装redis数据库并启动服务 安装pip install django-redis 附带django-redis中文文档:django-redis中文文档 代码实现 在项目中的setting.p ...
分类:
其他好文 时间:
2020-09-24 20:47:27
阅读次数:
47
1.需要安装redis/rediscluster #!/usr/bin/env python3.7.4 # -*- coding:utf-8 -*- # # File: rds2rdsCluster.py # Project: 将单点redis的数据迁移到cluster # Author: Aven ...
分类:
其他好文 时间:
2020-09-23 23:56:52
阅读次数:
56
.安装环境 系统版本:CentOS 7.4(自带Python2.7)安装版本:Python3.6安装插件:virtualenv、virtualenvwrapper 输入命令时,无需输入#号 一、安装Python3 查看python安装位置,一般是位于/usr/bin/python目录下。 # whi ...
分类:
其他好文 时间:
2020-09-23 23:05:14
阅读次数:
42
使用django_damin后台时,数据库没有自动生成django_admin_log,需要单独迁移文件admin应用pythonmanage.pymakemigrationsadminpythonmanage.pymigrateadmin报错如下:err.raise_mysql_exception(self._data)File"/usr/local/python36/lib/python3.6
分类:
其他好文 时间:
2020-09-21 12:14:22
阅读次数:
56
modelsadmin属性: 点这里 models.admin方法: 点这里 ...
分类:
其他好文 时间:
2020-09-18 03:01:45
阅读次数:
35
Converting any HTML template into a Django template The normal way Any HTML, CSS, JS or BootStrap template can be converted into a Django compatible t ...
分类:
Web程序 时间:
2020-09-18 02:57:40
阅读次数:
47
1.找到file下setting的django配置: 项目根目录 项目的setting文件 项目的manage文件 2. 点击我这里vedio旁的下拉框,有一个add或者edit配置的选项,选择。 3.配置settings文件的位置,并选择python环境 ...
分类:
其他好文 时间:
2020-09-18 02:34:06
阅读次数:
31