阅读背景:

在Django REST Framework中限制每页的项目

来源:互联网 

What is the best way to limit the items per page in Django REST Framework? I set PAGINATE_BY = 20 and PAGINATE_BY_PARAM. Without parameter you get 20 items but it is also possible to get 4000 items over the paginate param. This requests are very heavy and not very useful but perfect for script kiddies. What is the best way to limit the items per pag




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: