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