Django Book 翻译
菜单>:
TOC
返回
原文:
* ``paginate_by`` : An integer specifying how many objects should be displayed per page. If this is given, the view will paginate objects with ``paginate_by`` objects per page. The view will expect either a ``page`` query string parameter (via ``GET`` ) containing a zero-indexed page number, or a ``page`` variable specified in the URLconf. See the following Notes on Pagination section.
翻译:
* ``paginate_by`` : 一个整形数,用来制定每页显示多少条记录。如果指定了这个参数,那么视图将会把记录按照paginate_by的值来安排每页记录的数量。视图将会通过一个page的查询字符串参数传入一个以0开始的页号(通过GET来获取page的值),或者在配置url的时候指定一个page变量。详细请查看Pagination章节的说明。
备注:
译者: