一、频率简介 为了控制用户对某个url请求的频率,比如,一分钟以内,只能访问三次 二、自定义频率类(了解): from rest_framework.throttling import BaseThrottle class MyThrottle(BaseThrottle): VISIT_RECORD Read More
posted @ 2019-07-04 20:39 TianShu Views(258) Comments(0) Diggs(0) Edit
写一个出版社的增删查改resful接口 models.py class Book(models.Model): name = models.CharField(max_length=32) price = models.DecimalField(max_digits=5, decimal_place Read More
posted @ 2019-07-04 16:36 TianShu Views(161) Comments(0) Diggs(0) Edit