Django 组装表名查询数据(动态表名、组合表名) 了解 getattr 函数 教程:https://www.runoob.com/python/python-func-getattr.html 描述 getattr() 函数用于返回一个对象属性值。 ... continue reading django zhuoyuebiji 2019-12-17 1045
Django + celery + beat 执行定时任务 开发环境 python 3.6.8 djang ... continue reading django zhuoyuebiji 2019-12-17 3194
学习过程的四个阶段 出处:http://www.360doc.cn/mip/789301253.html 学习就是一个从不会到会的过程。哦,听上去它是这样的简单和直接,可是我们自身的经验告诉我们并非如此。回忆一下你自身的经历,你是如何学习的:某项体育运动 ... continue reading 生活感悟 zhuoyuebiji 2019-12-16 711
Celery 报错: Refusing to deserialize untrusted content of type pickle (application/x-python-serialize) 出错环境: windows 10 python 3.6.8 django 1.11.26 celery 4.3.0 错误日志: 同样的代码在 Mac 和 centos 环境 ... continue reading django zhuoyuebiji 2019-12-16 2019
Django + celery + redis 执行异步任务及查看结果(推荐) 官方文档 https://docs.celeryproject.org/en/latest/django/first-steps-with-django.html#using-celery-with-django(配置文档) ... continue reading django zhuoyuebiji 2019-12-15 3135
Python3 不小心 卸载了 pip,重装 pip 办法 日志记录 1. 手残了,多打了 pip,而且还没看提示,一路 Y(Mac OS) (joyoo) yinzhuoqundeMacBook-Pro:joyoo yinzhuoqun$ pip uninstall pip ins ... continue reading python zhuoyuebiji 2019-12-15 3302
Django + djcelery + redis 执行异步任务 安装 redis Mac 或 centos Mac redis 开机自启 Windows 安装 django-redis pip install django-redis pip ... continue reading django zhuoyuebiji 2019-12-15 682
启动 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 1000
Redis 5.0.7: MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that m 错误提示 MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands t ... continue reading centos zhuoyuebiji 2019-12-13 275
Vim 修改文件出现错误 “E45: 'readonly' option is set (add!to override)” vim 修改文件出现错误 “E45: ‘readonly‘ option is set (add ! to override)”, 其实这是权限造成的,文件设置成了只读权限,只读文件修改 ... continue reading centos zhuoyuebiji 2019-12-13 4220