这是在django项目中,写完视图没有得到相应给前端,我检查了一下,找到了错误提示,url是cart,有response,但是出现上面的错误提示,让我百思不得其解,原来函数里面return response位置写错了。。。
AssertionError: Expected a `Response`, `HttpResponse` or `HttpStreamingResponse` to be returned from
最新推荐文章于 2022-07-12 10:26:20 发布
这是在django项目中,写完视图没有得到相应给前端,我检查了一下,找到了错误提示,url是cart,有response,但是出现上面的错误提示,让我百思不得其解,原来函数里面return response位置写错了。。。