摘要: 在 app 目录下的 utils 目录下创建 throttle.py throttle.py: from rest_framework.throttling import SimpleRateThrottle import time # 访问记录 VISIT_RECORD = {} # 用于游客的访 阅读全文
posted @ 2021-01-17 23:32 Sch01aR# 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 在 app 目录下创建 utils 目录,并在该目录下创建 throttle.py throttle.py: from rest_framework.throttling import BaseThrottle import time # 访问记录 VISIT_RECORD = {} class M 阅读全文
posted @ 2021-01-17 15:41 Sch01aR# 阅读(120) 评论(0) 推荐(0) 编辑