01 2019 档案
rest-framework基本组件—主要看频率
摘要:添加节流 自定义节流的方法 限制60s内只能访问3次 (1)API文件夹下面新建throttle.py,代码如下: # utils/throttle.py from rest_framework.throttling import BaseThrottle import time VISIT_REC 阅读全文
posted @ 2019-01-21 10:34 阿橙 阅读(197) 评论(0) 推荐(0)