Django 模板中使用 widthratio 标签实现 乘法、除法 运算 先看官方文档 http://doc.codingdict.com/django/ref/templates/builtins.html#std:templatetag-widthratio(中文) https://docs.dj ... continue reading django zhuoyuebiji 2020/3/29 1091
Django import_export 个性化导出 model 里的 字段含有 choice 的值 models.py class UserProfile(AbstractUser): """ 用户 """ gender_choice = ( ("0", "女"), ... continue reading django zhuoyuebiji 2020/12/8 1086
Celery ValueError: not enough values to unpack (expected 3, got 0) 的解决方法(windows) 错误环境 windows 10 python 3.6 django &nb ... continue reading django zhuoyuebiji 2020/2/27 1080
Django 获取富文本编辑器中的图片地址(缩略图、封面) 开发环境 1. python: 3.6.8 2. django==1.11.22 models.py from django.db import models from django ... continue reading django zhuoyuebiji 2019/7/26 1073
Django Admin Show Image from Imagefield(Django admin 图片预览) 在 Django 管理后台中,图片字段(ImageField)默认是显示路径,期望能看到图片预览图。 编写 ImageWidgetAdmin 继承 admin.ModelAdmin, 编写自 ... continue reading django zhuoyuebiji 2020/4/15 1071
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running 产生原因: 安装 docker 后没有启动 docker 解决方法1: su root # 先切换到root用户, 再执行以下命令 systemctl enable docker # 开机自动启动docker ... continue reading docker zhuoyuebiji 2021/4/12 1066
Centos7 mysqlclient ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. 安装环境 django 2.2 centos 7 错误日志 pip install mysqlclient (qingjiu) [root@VM_16_3_centos running]# pip in ... continue reading django zhuoyuebiji 2020/3/30 1064
Centos 查看端口是否被使用(netstat 和 lsof) [root@VM_2_29_centos ~]# netstat -anp | grep 9090 tcp 0 0 127.0.0.1:9090 0.0.0.0:* ... continue reading centos zhuoyuebiji 2020/5/21 1062
Selenium-server-standalone 分布式自动化测试 搭建 机器准备 linux 主机( 本次使用 centos7,hub 服务) windows 主机(win10,node 节点) hub 服务端环境准备 java 环境安装 文档 1 文档 2 ... continue reading 软件测试 zhuoyuebiji 2021/5/19 1059
Selenium Firefox geckodriver 下载 从selenium 3.0.0开始,要求 Firefox为48及以上版本。 geckodriver下载:https://github.com/mozilla/geckodriver/releases/ ... continue reading 软件测试 zhuoyuebiji 2018/12/19 1056