[Answer]-Django endless pagination(twitter style) not working – .endless_more class not in html but used in js

1πŸ‘

βœ…

i’m using that on my portal, and it seems fine your code, you just missed one thing

{% show_more %}

that’s what actually enables the twitter-style infinite pagination

edit here:

you may want to add this too:

<script type="text/javascript" charset="utf-8">
    var endless_on_scroll_margin = 20;
</script>

where β€œ20” is the number of pixels (from the bottom of the page) that triggers the scrolling

you may want to try more than one value till you get the perfect one for your project

see here and here

Leave a comment