{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.11", "Framework :: Django :: 1.8", "Framework :: Django :: 2.2", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "Django Pagination Links\n=======================\n\nSmall package for creating a list of page links from a Django paginator object,\nsimilar in style to the Django admin - showing the start and end pages, but\nonly showing a limited list of pages in the middle.\n\nInstallation\n------------\n\nUsing pip_:\n\n.. _pip: https://pip.pypa.io/\n\n.. code-block:: console\n\n $ pip install django-paginationlinks\n\n\nEdit your Django project's settings module, and add ``paginationlinks``:\n\n.. code-block:: python\n\n INSTALLED_APPS = [\n # ...\n 'paginationlinks',\n ]\n\nUsage\n-----\n\nLoad the template tag:\n\n.. code-block::\n\n {% load pagination_links %}\n\nTypical usage, which shows 1 page on each end, and 1 on each side of the current page:\n\n.. code-block::\n\n {% get_pagination_links paginator page_obj as pagination_links %}\n\nHowever the number of pages on each side can be customised, as well as how many pages at the end -\nboth are optional arguments:\n\n.. code-block::\n\n {% get_pagination_links paginator page_obj on_each_side=1 on_ends=2 as pagination_links %}\n\nA more fully featured example for a site:\n\n.. code-block::\n\n {% load pagination_links %}\n\n {% if page_obj.has_other_pages %}\n {% get_pagination_links paginator page_obj as pagination_links %}\n