2019年1月21日
摘要: 添加节流 自定义节流的方法 限制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 阿橙 阅读(192) 评论(0) 推荐(0) 编辑