Django admin 实现 增加记录 和 修改记录 展现不同的表单 说明 提供一个参考,具体逻辑要看具体情况。本质就是根据条件展示不同的表单内容(注意表单必填项字段,保存时要记得传值)。 根据用户返回表单,注意必填项保存时要给值 from django.contrib import a ... continue reading django zhuoyuebiji 2019/9/29 1648
Notepad++ 实用设置 1. 制表符替换为空格:设置 --> 首选项 --> 语言 --> 勾选 替换为空格 2. 文件快照和备份:设置 --> 首选项 --> 备份 --> 勾选 启动文件快照 ... continue reading 软件测试 zhuoyuebiji 2019/6/13 1646
MacOS mysqlclient ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. 安装环境 Mac OS django 2.2 错误日志 pip install mysqlclient (qingjiu) yinzhuoqundeMacBook-Pro:QingJiuSystem y ... continue reading django zhuoyuebiji 2020/3/31 1644
解决:安装 django-celery-beat 自动把 django 升级到 3.0 了 安装 beat 日志 (joyoo) E:\yinzhuoqun\djangos\joyoo>pip install django-celery-beat Collecting django-celery-be ... continue reading django zhuoyuebiji 2019/12/17 1642
Celery 报错:Received unregistered task of type 'apps.share.tasks.post_to_beiqia'. 开发环境 windows 10 python 3.6 celery 4.3.0(redis 做的中间人) 错误日志 启动后错误会一直刷屏,不得不停止掉 (joyoo) E:\yinzhuoqun ... continue reading django zhuoyuebiji 2019/12/19 1641
Python3 + Django + xamdin + DjangoUediter,UEditorField 在 xadmin 下加载不出来的解决办法 使用环境 python==3.6.8 django==1.11.18 xadmin # pip install git+git://github.com/sshwsfc/xadmin.git DjangoUed ... continue reading django zhuoyuebiji 2019/6/13 1625
启动 celery worker 报错:AttributeError: 'str' object has no attribute 'items' 错误日志 (joyoo) yinzhuoqundeMacBook-Pro:joyoo yinzhuoqun$ python manage.py celery worker --loglevel=info raven.contri ... continue reading redis zhuoyuebiji 2019/12/15 1621
CPU 散热硅脂白色和银灰色 纯硅脂:一般是白色的,导热性能一般 含银硅脂:一般是灰色的,导热性能良好 ... continue reading 计算机基础 zhuoyuebiji 2019/10/19 1620
Mac 系统配置开机自动执行 rc.local 文件 原文地址:http://www.jahng.cn/node/70 在 linux 系统上,要配置开机启动项很简单,只要在 /etc/rc.d/rc.local 里面写上想要开机执行的命令就可以了。 但是在 mac 上不存在 rc ... continue reading 计算机基础 zhuoyuebiji 2019/12/13 1619
Django_filters TypeError: __init__() got an unexpected keyword argument 'name' # 错误信息: File "E:\py_virtualenv\tracbug\lib\site-packages\django_filters\rest_framework\filterset.py", line 24, in ... continue reading django zhuoyuebiji 2019/10/18 1612