2

私はdjango/pythonが初めてです。django-endless-pagination を使用してスクロールでページネーションを試しているところ、以下のエラーが見つかりました:'BlockNode' object has no attribute 'context'

entry_index.html

<h2>Logs:</h2>
{% include page_template %}
{% block js %}
{{ block.super }}
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="{{ STATIC_URL }}endless_pagination/js/endless-pagination.js"></script>
<script>
    $.endlessPaginate({
        paginateOnScroll: true,
        paginateOnScrollChunkSize: 5
    });
</script>
{% endblock %}

entry_index_page.html

{% for i in list %}
    {{ i }}
{% endfor %}

これについては、 Django Endless Paginationチュートリアルに従っています。

どんな助けでも大歓迎です。

4

1 に答える 1