Push.js Javascript(js 浏览器桌面通知) 目的效果 不用把网页置于前台就能看到消息推送的具体文案 github 源码 https://github.com/Nickersoft/push.js 引用 push.js Push.js 可以通过 npm 或 ... continue reading html zhuoyuebiji 2020/9/2 971
Django import_export 个性化导出 model 里的 字段含有 choice 的值 models.py class UserProfile(AbstractUser): """ 用户 """ gender_choice = ( ("0", "女"), ... continue reading django zhuoyuebiji 2020/12/8 970
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 969
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 966
Pandas read_csv、read_excel 以文本形式读取零开头的纯数字字符 在转换高德地图城市编码的过程中,有很多城市编码开头是 0,当我转成 json 的时候,出来的结果是直接吧 数字前面的 0 去掉了,不符合预期。所以此时需要对列转类型。 import os import time import ... continue reading python zhuoyuebiji 2020/6/22 964
Django 获取 request 的 url 源代码路径 Lib\site-packages\django\http\request.py 获取带参数 URL ( django 1.11 居然报错了) request.get_full_p ... continue reading django zhuoyuebiji 2019/11/21 956
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 952
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 951
Django Admin Show Image from Imagefield(Django admin 图片预览) 在 Django 管理后台中,图片字段(ImageField)默认是显示路径,期望能看到图片预览图。 编写 ImageWidgetAdmin 继承 admin.ModelAdmin, 编写自 ... continue reading django zhuoyuebiji 2020/4/15 943
触摸云、阿里云、腾讯云、百度云实惠云主、diyvm 香港云服务器 个人选择顺序:国内先 阿里,再 腾讯,后 百度,香港首选 触摸云 diyvm 香港云服务器 触摸云 cn2 网络 香港云服务器 diyvm 阿里云学生机 ... continue reading centos zhuoyuebiji 2019/7/26 942