报错如图:

解决django报错:.accepted_renderer not set on Response

报错原型:视图函数继承错误:

解决django报错:.accepted_renderer not set on Response

解决:继承 rest_framework.views  里面的APIView

解决django报错:.accepted_renderer not set on Response