摘要:
[toc] 权限 设置权限,permission_classes 简单使用 python from rest_framework.permissions import BasePermission from rest_framework import exceptions class MyPermi 阅读全文
posted @ 2019-11-28 21:55
SensorError
阅读(178)
评论(0)
推荐(0)
摘要:
[toc] 认证 用于必须登录后才能访问否个视图。 简单使用: url.py views.py 源码: python class APIView(View): authentication_classes = api_settings.DEFAULT_AUTHENTICATION_CLASSES d 阅读全文
posted @ 2019-11-28 21:26
SensorError
阅读(180)
评论(0)
推荐(0)