get_object_or_404返回404(400)

get_object_or_404:第一个参数为queryset,第二个参数必须以关键字的形式传递,否则报错

 

posted @ 2019-08-07 14:36  前方、有光  阅读(313)  评论(0编辑  收藏  举报