上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 45 下一页
摘要: 通过项目根url找: 阅读全文
posted @ 2022-09-06 22:56 tslam 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 官方文档: https://www.django-rest-framework.org/api-guide/viewsets/ 阅读全文
posted @ 2022-09-06 22:31 tslam 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 原因: drf<djangorestframework> 版本问题 转载自: https://stackoverflow.com/questions/59733820/django-rest-framework-drf-typeerror-register-got-an-unexpected-key 阅读全文
posted @ 2022-09-06 22:21 tslam 阅读(483) 评论(0) 推荐(0) 编辑
摘要: 注释掉报错的那行代码,即使你非常觉得那一行代码没问题, 但实际上就是那一行代码才有的报错. 阅读全文
posted @ 2022-09-06 21:51 tslam 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 地址: https://pypi.org/project/djangorestframework/3.11.2/ 阅读全文
posted @ 2022-09-06 17:50 tslam 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 见下图 阅读全文
posted @ 2022-09-06 12:03 tslam 阅读(5) 评论(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 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 设置settings中 DEBUG = True 阅读全文
posted @ 2022-09-02 19:00 tslam 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 传过来的都是QueryDict对象, 字符串类型数据 见下图 阅读全文
posted @ 2022-09-01 09:55 tslam 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 转载自: https://blog.csdn.net/weixin_41951954/article/details/124838931 报这个错是因为json.dumps函数发现字典里面有 Decimal类型的数据,无法JSON serializable解决方法:是检查到Decimal类型的值转化 阅读全文
posted @ 2022-08-31 18:45 tslam 阅读(1067) 评论(0) 推荐(0) 编辑
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 45 下一页