Django simpleUI 修改 element-UI 引用的 index.js 和 index.css 链接 以及 base.html 的 vue 资源链接 原来的 index.js 和 index.css 加载时间太慢: 在 simpleUI 下面的 templates(../site-packages/simpleui/templates/admin) 里面找到&nbs ... continue reading django zhuoyuebiji 2020-3-29 580
HINT: ForeignKey(unique=True) is usually better served by a OneToOneField. WARNINGS HINT: ForeignKey(unique=True) is usually better served by a OneToOneField. 警告的意思 django model 里面 ... continue reading django zhuoyuebiji 2020-3-28 699
HINT: It seems you set a fixed date / time / datetime value as default for this field. This may not be what you want. If you want to have the current date as default, use `django.utils.timezone.now` WARNINGS operations.AnchorBindAgent.start_time: (fields.W161) Fixed default value provided. HINT: ... continue reading django zhuoyuebiji 2020-3-28 1447
Django2 The custom handler404 view 'users.views.page_not_found' does not take the correct number of arguments (request, exception). 错误日志 django 2.2 配置全局 404、500 时报错: The custom handler404 view 'users.views.page_not_found' does not take th ... continue reading django zhuoyuebiji 2020-3-27 1165
HTTPie 官方文档中文翻译版 HTTPie 是一个命令行 HTTP 客户端。目标是让 CLI 与 Web services 的交互尽可能的更友 好。它提供了一个简单的 http 命令,可以让我们用简单自然的表述发送任意 HTTP 请求 ,并且可以输出 ... continue reading 软件测试 zhuoyuebiji 2020-3-17 315
Django CKEditor 上传图片提示“不正确的服务器响应”的解决办法 开发环境 django 1.11 django-ckeditor 5.3.1(CKEditor 4.7.3) 发生背景 前端页面引用了 CKEditor 富文本编辑器,Django 未登录的时候上传文件就会报:&qu ... continue reading django zhuoyuebiji 2020-3-12 1492
Django admin 只有两种状态非布尔类型的字段转成布尔类型,admin 后台显示 绿色勾 和 红色叉 正常情况下 models.BooleanField 类型字段在 django admin 后台 列表页面会自动显示 绿色勾 和 红色叉,如图: 有时候我们写模型的的时候写成了其他显示文案,如果只有两种状态时,又想显示 ... continue reading django zhuoyuebiji 2020-3-11 751
阿里云腾讯云百度云华南区 1核2G1M 云服务器,3年期价格比较(2020年3月) 阿里云 购买链接 1 IPv4,40G 高效云盘,0.57 折 1733.4 元,可选 centos 8 腾讯云 购买链接 1 IPv4,50G 高效云盘,5 折 2097 元,无 centos8 ... continue reading 计算机基础 zhuoyuebiji 2020-3-11 294
Redis 模糊匹配和批量删除 keys 模糊匹配 可用版本: >= 1.0.0 时间复杂度: O(N), N 为数据库中 key 的数量。 查找所有符合给定模式 pattern ... continue reading redis zhuoyuebiji 2020-3-11 7268
百度分享前端代码( js 本地版 ) https://xieboke.net/static/api/js/share.js <div class=" bdsharebuttonbox"><a href="#" class="bds_more" dat ... continue reading html zhuoyuebiji 2020-3-9 306