05 2022 档案
摘要:自定义user表签发token 普通写法,写在view类中 from rest_framework.views import APIView # class UserView(APIView): # 自动生成路由, from rest_framework.viewsets import ViewSe
阅读全文
摘要:自动生成文档 # coreapi 使用步骤 -pip3 install coreapi -路由中写 from rest_framework.documentation import include_docs_urls urlpatterns = [ ... path('docs/', include
阅读全文