摘要: 一、drf频率源码分析 from rest_framework.throttling import SimpleRateThrottle # 在频率限制中最重要的方法就是allow_request # 可以直接去频率类的顶级父类里找,告诉我们如果要写频率限制,就必须重写这个方法,返回值True/Fa 阅读全文
posted @ 2020-07-14 18:09 lxttt521 阅读(261) 评论(0) 推荐(0) 编辑