本文共 193 字,大约阅读时间需要 1 分钟。
9.1文档设置
urls.py
from rest_framework.documentation import include_docs_urlsurlpatterns = [ path('docs/',include_docs_urls(title='Zhixheng')),]
在定义字段的时候加上help_text
在编辑时加上描述
在docs中还可以进行接口测试
转载地址:http://lrnvb.baihongyu.com/