django.template.exceptions.TemplateDoesNotExist: rest_framework/api.html

  • 1、在进行测试获取列表资源——序列化返回多个模型类对象时,浏览器访问请进行求报错:
    TemplateDoesNotExist at /books/
    django.template.exceptions.TemplateDoesNotExist: rest_framework/api.html_第1张图片

  • 解决方法:在配置文件中注册'rest_framework',
    django.template.exceptions.TemplateDoesNotExist: rest_framework/api.html_第2张图片

你可能感兴趣的:(Django,Rest,Framework(bug集))