django-endless-pagination doesn't seem to be using AJAX

喜欢而已 提交于 2019-12-06 05:04:01

I ran into the same problem. You have to wrap the call to endlessPaginate with

$(document).ready(function() {
    $.endlessPaginate({
        paginateOnScroll: true,
        paginateOnScrollMargin: 20
    });
});

We'll fix the documentation asap

I'm not sure but instead of

{{ STATIC_URL }}endless_pagination/js/endless-pagination.js

try using this form

{% static "endless_pagination/js/endless-pagination.js" %}

Don't forget to run a python manage.py collectstatic before relaunching your server.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!