Django Endless Pagination - 同一页面中的多个分页

时间:2017-02-10 16:34:09

标签: python django django-endless-pagination

我的Django版本是1.10.5

使用Django Endless Pagination 3.0.1我想在我的网站上显示两个或多个分页列表(请参阅代码)。

为此,我尝试执行此操作tutorial但如果我使用第二个变量或多个变量,解决方案每次都会出错。教程中的第二个变量(查询字符串)是"other_entries_page"

来自testserver的答案: u'paginate'标签的无效参数

我不知道哪里出错了。

以下是教程中的代码:

{% load el_pagination_tags %}

{% paginate entries %}
{% for entry in entries %}
{# your code to show the entry #}
{% endfor %}
{% show_pages %}

{# "other_entries_page" is the new querystring key #}
{% paginate other_entries using "other_entries_page" %}
{% for entry in other_entries %}
{# your code to show the entry #}
{% endfor %}
{% show_pages %}

我所说的变量是GET变量(例如:http://example.com/ page = 2 )。

我希望你能帮助我。

0 个答案:

没有答案
相关问题