Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Django pagination tools supporting Ajax, multiple and lazy pagination, Twitter-style and Digg-style pagination.

Project Description
Django Endless Pagination Angular

.. image::

.. image::

.. image::

.. image::

Django Endless Pagination Angular is a fork of the excellent application django-endless-pagination created by Francesco Banconi.
This application get all code of version 2.0 and update for working in django >= 1.7 in addition to migration code jquery to angular.js.

Django Endless Pagination Angular can be used to provide Twitter-style or Digg-style pagination, with optional Ajax support and other features
like multiple or lazy pagination.


**Documentation** is `avaliable online
<>`_, or in the **doc*
directory of the project.


Via pip::

pip install django-endless-pagination-angular

Quick start

1. Add application 'endless_pagination' to INSTALLED_APPS.
2. Add this lines in

from django.conf.global_settings import TEMPLATE_CONTEXT_PROCESSORS

Getting started

In this example it will be implemented twitter style pagination


<!DOCTYPE html>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type' />
<title>{% block title %}Testing project{% endblock %} - Django Endless Pagination Angular</title>
<link href="" rel="stylesheet">
<link href="{{ STATIC_URL }}pagination.css" rel="stylesheet">
<body ng-app="EndlessPagination">
<div class="container">
<div class="page-header">
<h1>Django Endless Pagination Angular <small>Twitter Style</small></h1>
<div class="row">
{% block content %}{% endblock %}
{% block js %}
<script src=""></script>
<script src="{{ STATIC_URL }}endless_pagination/js/module.endless.js"></script>
{% endblock %}


{% extends "base.html" %}

{% block content %}
<div class="endless_page_template span12" endless-pagination="{'paginateOnScroll': true}">
{% include myapp/page_template.html %}
{% endblock %}


{% load endless %}

{% paginate objects %}
{% for object in objects %}
<div class="well object">
<h4>{{ object.title }}</h4>
{{ object.contents }}
{% endfor %}
{% show_more "More results" %}

In the

class TwitterView(View):

def get(self, request, forum, *args, **kwargs):

template_name = "myapp/index.html"
page_template = "myapp/page_template.html"

objects = MyModel.objects.all()

data = {
'objects': objects,

if request.is_ajax():
template_name = page_template
return render(request, template_name, data)

In the

url(r'^twitter/$', TwitterView.as_view(), name='twitter'),

Run server::

python runserver


If you have already declared an angular module all you have to do is inject the module EndlessPagination. As follow::

'use strict';
angular.module('TestApp', ['EndlessPagination']);

This way you will be able to use the directive endless-pagination. For more examples check the official repository:
Release History

Release History

This version
History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-endless-pagination-angular-1.2.tar.gz (38.3 kB) Copy SHA256 Checksum SHA256 Source Nov 21, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting