RestApi:TypeErroThe view function did not return a valid response. The function either returned None

TypeErroThe view function did not return a valid response. The function either returned None or ended without a return statement.

出现这种情况,根据经验有两种问题:

1.没有加return方法

2.api重名,或者指定的方法可能重RestApi:TypeErroThe名,修改删除就好

猜你喜欢

转载自blog.csdn.net/shunzi2016/article/details/107557799