生成图片验证码的时候,函数返回的时候使用HttpResponse,而不用JsonResponse

TypeError: In order to allow non-dict objects to be serialized set the safe parameter to False.
最新推荐文章于 2023-03-23 11:09:46 发布
本文介绍在生成图片验证码的过程中,如何正确选择HttpResponse而非JsonResponse来返回验证码图片,确保浏览器能够正确展示验证码图片而不是将其作为JSON数据解析。
761

被折叠的 条评论
为什么被折叠?



