![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
报错
bb_nie
这个作者很懒,什么都没留下…
展开
-
报错内容Manager isn‘t available; ‘auth
报错内容:Manager isn’t available; ‘auth.User’ has been swapped for ‘users.User’原因:settings文件里设置了扩展了Django用户模型类用的导包路径是:将views.py文件里导包路径:from django.contrib.auth.models import User改为:from users.models import User.models import UserOK!...原创 2020-07-05 23:28:25 · 2514 阅读 · 0 评论 -
TypeError Object of type ‘bytes‘ is not JSON serializable
报错内容:TypeError: Object of type 'bytes' is not JSON serializableERROR basehttp 157 "GET /browse_histories/ HTTP/1.1" 500 116158源代码: skus.append({ "id": int(sku_id), "name": sku.name, 'default_image_url': sku.default_image_url原创 2020-07-01 15:35:24 · 374 阅读 · 0 评论