摘要:
'''用户认证章节''' # 用户认证章节:写一个数据接口 from django.http import JsonResponse from .utils import get_token from rest_framework.exceptions import APIException cla 阅读全文
posted @ 2020-02-21 19:36
y0um
阅读(165)
评论(0)
推荐(0)
摘要:
'''2.使用viewset优化后的url''' urlpatterns = [ re_path(r'book/$', views.BookView.as_view({ 'get': 'list', 'post': 'create', })), re_path(r'book/(?P<pk>\d+)/ 阅读全文
posted @ 2020-02-21 10:02
y0um
阅读(367)
评论(0)
推荐(0)

浙公网安备 33010602011771号