摘要:
10.1 JSONP解决跨域 利用浏览器不阻止src请求的原理,解决跨域 后端代码 from django.http import HttpResponse from rest_framework.views import APIView class DemoView(APIView): def g 阅读全文
posted @ 2021-03-23 03:45
xiangjianan
阅读(43)
评论(0)
推荐(0)
摘要:
5.1 定义认证类 utils/auth.py:定义认证类的authenticate方法 from rest_framework.authentication import BaseAuthentication from rest_framework.exceptions import Authen 阅读全文
posted @ 2021-03-23 03:33
xiangjianan
阅读(57)
评论(0)
推荐(0)
摘要:
一、序列化 二、视图 三、路由 四、版本控制 五、认证 六、权限 七、频率控制 八、分页 九、解析器 十、跨域问题 十一、ContentType组件 阅读全文
posted @ 2021-03-23 03:24
xiangjianan
阅读(47)
评论(0)
推荐(0)

浙公网安备 33010602011771号