0

我的 Django 版本是 1.10.5

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

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

来自测试服务器的答案: 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)。

我希望你能帮助我。

4

0 回答 0