上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 50 下一页
摘要: 注释掉报错的那行代码,即使你非常觉得那一行代码没问题, 但实际上就是那一行代码才有的报错. 阅读全文
posted @ 2022-09-06 21:51 tslam 阅读(36) 评论(0) 推荐(0)
摘要: 地址: https://pypi.org/project/djangorestframework/3.11.2/ 阅读全文
posted @ 2022-09-06 17:50 tslam 阅读(221) 评论(0) 推荐(0)
摘要: 见下图 阅读全文
posted @ 2022-09-06 12:03 tslam 阅读(11) 评论(0) 推荐(0)
摘要: 1 2 问题: 我在执行修改models.Student.objects.filter(pk=8).update(**{'name':'他的姓名178', 'desc':'desc179'}),后拼音没有更改 背景code """ class Student(models.Model): c_nam 阅读全文
posted @ 2022-09-05 10:18 tslam 阅读(39) 评论(0) 推荐(0)
摘要: 设置settings中 DEBUG = True 阅读全文
posted @ 2022-09-02 19:00 tslam 阅读(344) 评论(0) 推荐(0)
摘要: 传过来的都是QueryDict对象, 字符串类型数据 见下图 阅读全文
posted @ 2022-09-01 09:55 tslam 阅读(32) 评论(0) 推荐(0)
摘要: 转载自: https://blog.csdn.net/weixin_41951954/article/details/124838931 报这个错是因为json.dumps函数发现字典里面有 Decimal类型的数据,无法JSON serializable解决方法:是检查到Decimal类型的值转化 阅读全文
posted @ 2022-08-31 18:45 tslam 阅读(1210) 评论(0) 推荐(0)
摘要: 转载自: https://blog.csdn.net/weixin_41951954/article/details/124838931 代码 import json class BytesEncoder(json.JSONEncoder): def default(self, obj): if i 阅读全文
posted @ 2022-08-31 18:41 tslam 阅读(1444) 评论(0) 推荐(0)
摘要: json.dumps(a, ensure_ascii=False) #带上ensure_ascii=False这个参数 阅读全文
posted @ 2022-08-31 18:16 tslam 阅读(31) 评论(0) 推荐(0)
摘要: 如下图: 阅读全文
posted @ 2022-08-31 14:37 tslam 阅读(739) 评论(0) 推荐(0)
上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 50 下一页