{ "info": { "author": "Livio Ribeiro", "author_email": "livioribeiro@outlook.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "=======================\r\ndjango-smart-pagination\r\n=======================\r\n\r\nGenerate pagination links for Django\r\n\r\nInstead of displaying links to all the pages at once, django-smart-pagination calculates a limited subset of them.\r\n\r\nWorks with Django Templates and Jinja2.\r\n\r\n-----\r\nUsage\r\n-----\r\n\r\nFirst add ``smart_pagination`` to your installed apps:\r\n\r\n.. code:: python\r\n\r\n INSTALLED_APPS = [\r\n 'smart_pagination'\r\n ]\r\n\r\nUse a pagination block passing the ``Page`` object, the number of links (literal of variable)\r\nand the name to associate the ``smart_pagination.Paginator`` object.\r\n\r\n.. code-block:: django\r\n\r\n {% load pagination_tags %}\r\n {% paginate page_obj num_links paging %}\r\n