Nginx 自定义 502 页面 server conf 配置 server { listen 80; listen 443; server_name www.xieboke ... continue reading nginx zhuoyuebiji 2022/2/17 1382
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 1376
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 1376
Django 模板获取 for 循环前 N 条数据 咱先找到官方文档模板内建标签和过滤器页面 https://docs.djangoproject.com/zh-hans/2.2/ref/templates/builtins/ 找到 for in 标签的用法的地方 ... continue reading django zhuoyuebiji 2019/12/25 1373
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 1366
Django 模板中使用 widthratio 标签实现 乘法、除法 运算 先看官方文档 http://doc.codingdict.com/django/ref/templates/builtins.html#std:templatetag-widthratio(中文) https://docs.dj ... continue reading django zhuoyuebiji 2020/3/29 1357
Selenium Firefox geckodriver 下载 从selenium 3.0.0开始,要求 Firefox为48及以上版本。 geckodriver下载:https://github.com/mozilla/geckodriver/releases/ ... continue reading 软件测试 zhuoyuebiji 2018/12/19 1356
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 1349
英语元音音变转换 重要构词规则 一般情况下,在同源词汇中,元音改变,含义不变(元音字母没有含义)。一般元音从前往后变(a, e, i, o, u, y) 举例 begin(现在), began(过去的), begun(过去分词) 开始 ... continue reading 英语学习 zhuoyuebiji 2020/2/24 1348
Pycharm ModuleNotFoundError: No module named 'settings' pycharm 添加的 django 老项目,启动时报错: ModuleNotFoundError: No module named 'settings' 解决办法: django 项目 settings.py 所 ... continue reading django zhuoyuebiji 2021/12/1 1345