Django import_export 个性化导出 model 里的 字段含有 choice 的值 models.py class UserProfile(AbstractUser): """ 用户 """ gender_choice = ( ("0", "女"), ... continue reading django zhuoyuebiji 2020/12/8 1389
Django admin admin_order_field 自定义字段排序实现方法 模型 # admin.py class CustomerAdmin(admin.ModelAdmin): list_display = ('foo', 'number_of_orders') # models ... continue reading django zhuoyuebiji 2021/5/17 1387
Django 模板获取 for 循环前 N 条数据 咱先找到官方文档模板内建标签和过滤器页面 https://docs.djangoproject.com/zh-hans/2.2/ref/templates/builtins/ 找到 for in 标签的用法的地方 ... continue reading django zhuoyuebiji 2019/12/25 1381
Docker-compose 安装部署 mysql 配置准备 docker 和 docker-compose 安装 http://xieboke.net/article/341/ 创建 mysql主目录 mkdir /usr/local/mysql cd /us ... continue reading docker zhuoyuebiji 2023/2/10 1380
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 1368
Django 模板中使用 widthratio 标签实现 乘法、除法 运算 先看官方文档 http://doc.codingdict.com/django/ref/templates/builtins.html#std:templatetag-widthratio(中文) https://docs.dj ... continue reading django zhuoyuebiji 2020/3/29 1365
Selenium Firefox geckodriver 下载 从selenium 3.0.0开始,要求 Firefox为48及以上版本。 geckodriver下载:https://github.com/mozilla/geckodriver/releases/ ... continue reading 软件测试 zhuoyuebiji 2018/12/19 1363
Fiddler Modifying a Request or Response 出处:Modifying a Request or Response To make custom changes to web requests and responses, use FiddlerScript ... continue reading 软件测试 zhuoyuebiji 2019/8/13 1363
英语元音音变转换 重要构词规则 一般情况下,在同源词汇中,元音改变,含义不变(元音字母没有含义)。一般元音从前往后变(a, e, i, o, u, y) 举例 begin(现在), began(过去的), begun(过去分词) 开始 ... continue reading 英语学习 zhuoyuebiji 2020/2/24 1359
Wireshark 和 fiddler 抓包的工具的区别 Wireshark 和 Fiddler 都是常用的网络抓包工具,但它们在功能、使用场景和特点上有很大的区别。以下是它们的主要区别: 1. 工作原理 Wireshark: 底层抓包:Wiresh ... continue reading 软件测试 zhuoyuebiji 2025/2/21 1358