Warning: Undefined global variable $debug in /var/www/ourcoders/tiny4cocoa/application/controllers/baseController.php on line 124
图拉鼎 2019-12-05 11:07:50 发布的技术动态 - OurCoders (我们程序员)
图拉鼎
2019-12-05 11:07:50 发布
如果将 Python 从 3.7.x 升级到 3.8,然后又有使用 django-redis 作为 Cache,那么会遇到「unsupported pickle protocol: 5 」的错误。这个时候,要调用「from django.core.cache import cache; cache.delete_pattern("*")」来清理 cache,保证大版本的升级平滑。