djangorestfremework报错:Could not resolve URL for hyperlinked relationship using view name “store-detail”. You may have failed to include the related model in your API, or incorrectly configured the lookup_field
attribute on this field.
解决:换一个继承类
HyperlinkedModelSerializer 换成 ModelSerializer
Could not resolve URL for hyperlinked relationship using view name "store-detail". You may have fail
最新推荐文章于 2020-08-25 21:45:49 发布