Christian Rommel
Christian Rommel

Reputation: 3

Django Endless Pagination - Multiple paginations in the same page

My Django version is 1.10.5

With Django Endless Pagination 3.0.1 i want to show two or more paginated lists(see code) on my site.

For that i try to do this tutorial but the solution raises everytime an error if i use a second variable or multiple variables. The second variable(the querystring) in the tutorial is "other_entries_page".

The answer from the testserver: Invalid arguments for u'paginate' tag

I have no idea whats going wrong.

Here is the code from the tutorial:

{% 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 %}

The variables that i mean are GET-variables(like: http://example.com/?page=2).

I hope you can help me.

Upvotes: 0

Views: 259

Answers (0)

Related Questions