Hi everbody i have a problem about django infinite scroll paginations. I cant solve it.
home.html
<div class="infinite-container">
{% for post_display in post_data %}
<div class="card infinite-item">
<div class="card-body">
{{ post_display }}
</div>
</div>
</div>
<script src="{% static 'js/jquery.js' %}"></script>
<script src="{% static 'js/jquery.waypoints.min.js' %}"></script>
<script src="{% static 'js/infinite.min.js' %}"></script>
<script>
var infinite = new Waypoint.Infinite({
element: $('.infinite-container')[0],
handler: function(direction) {
},
offset: 'bottom-in-view',
onBeforePageLoad: function () {
$('.spinner-border').show();
},
onAfterPageLoad: function () {
$('.spinner-border').hide();
}
});
view.py
class HomeClassView(ListView):
model = EssahDisplayModel
paginate_by = 2
template_name = "authenticated/home.html"
context_object_name = 'post_data'
Bu i get this error on console:

(index):458 Uncaught TypeError: Waypoint.Infinite is not a constructor
at (index):458
it the line 458 start: var infinite = new Waypoint.Infinite({....
Someone knows it ? thans
I'm actually stuck on the same problem, but I think yours has another issue. You don't close the Django for loop.