会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Jerry`
欲买桂花同载酒,终不似,少年游
博客园
首页
新随笔
联系
订阅
管理
2021年7月5日
`basename` argument not specified, and could not automatically determine the name from the viewset, as it does not have a `.queryset` attribute.
摘要: 前言 Django REST framework ( DRF )是一个强大且灵活的工具包,用于构建 Web API。DRF 有自己的一套路由定义方式,即通过 Router 类型的 register 方法,该方法包含了一个名为 basename 的参数,下面让我们通过了解这个参数来一窥 DRF 的路由
阅读全文
posted @ 2021-07-05 18:39 Jerry`
阅读(863)
评论(5)
推荐(1)
公告