{ "info": { "author": "Jason McClellan, Koert van der Veer", "author_email": "jason@jasonmccllelan.io", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Framework :: Django", "Framework :: Django :: 1.10", "Framework :: Django :: 1.11", "Framework :: Django :: 1.4", "Framework :: Django :: 1.5", "Framework :: Django :: 1.6", "Framework :: Django :: 1.7", "Framework :: Django :: 1.8", "Framework :: Django :: 1.9", "Framework :: Django :: 2.0", "Framework :: Django :: 2.1", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.2", "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": "[![PyPi version](https://img.shields.io/pypi/v/django-bootstrap-pagination.svg)](https://pypi.python.org/pypi/django-bootstrap-pagination)\n[![PyPi downloads](https://img.shields.io/pypi/dm/django-bootstrap-pagination.svg)](https://pypi.python.org/pypi/django-bootstrap-pagination)\n[![Build Status](https://travis-ci.org/jmcclell/django-bootstrap-pagination.png?branch=master)](https://travis-ci.org/jmcclell/django-bootstrap-pagination)\n\n\n## Django Bootstrap Pagination\n\n*Bootstrap Compatibility*\n\n| Versions | Bootstrap Versions | Notes |\n| -----------------| ------------------- | -------------------------------------------------------|\n| < 1.1.0 | 2.x | |\n| > 1.1.0, < 1.7.0 | 3.x | |\n| >= 1.7.0 | 3.x, 4.x | bootstrap_pager is only compatible with Bootstrap 3.x |\n\n\nThis application serves to make using Twitter's Bootstrap Pagination styles\nwork seamlessly with Django Page objects. By passing in a Page object and\none or more optional arguments, Bootstrap pagination bars and pagers can\nbe rendered with very little effort.\n\nCompatible with Django **1.2+**\n\n## Installation\n\n### PIP\n\nThis will install the latest stable release from PyPi.\n\n```\n pip install django-bootstrap-pagination\n```\n\n### Download\n\nDownload the latest stable distribution from:\n\nhttp://pypi.python.org/pypi/django-bootstrap-pagination\n\nDownload the latest development version from:\n\ngithub @ http://www.github.com/jmcclell/django-bootstrap-pagination\n\n```\n setup.py install\n```\n\n## Usage\n\n### Setup\n\nMake sure you include bootstrap_pagination in your installed_apps list in settings.py:\n\n```\n INSTALLED_APPS = (\n 'bootstrap_pagination',\n )\n```\n\nAdditionally, include the following snippet at the top of any template that makes use of\nthe pagination tags:\n\n```\n {% load bootstrap_pagination %}\n```\n\nFinally, make sure that you have the request context processor enabled:\n\n```\n # Django 1.8+\n TEMPLATES = [\n {\n # ...\n 'OPTIONS': {\n context_processors': [\n # ...\n 'django.template.context_processors.request',\n ]\n }\n }\n ]\n\n # Django < 1.8\n TEMPLATE_CONTEXT_PROCESSORS = {\n \"django.core.context_processors.request\",\n )\n```\n\n# bootstrap_paginate\n\n**All Optional Arguments**\n\n- **range** - Defines the maximum number of page links to show\n- **show_prev_next** - Boolean. Defines whether or not to show the Previous and Next\n links. (Accepts `\"true\"` or `\"false\"`)\n- **previous_label** - The label to use for the Previous link\n- **next_label** - The label to use for the Next link\n- **show_first_last** - Boolean. Defines whether or not to show the First and Last links.\n (Accepts `\"true\"` or `\"false\"`)\n- **first_label** - The label to use for the First page link\n- **last_label** - The label to use for the Last page link\n- **show_index_range** - Boolean, defaults to \"false\". If \"true\" shows index range of items instead of page numbers in the paginator. For example, if paginator is configured for 50 items per page, show_index_range=\"true\" will display [1-50, 51-100, **101-150**, 151-200, 201-250, etc.] rather than [1, 2, **3**, 4, 5, etc.].\n- **url_view_name** - A named URL reference (such as one that might get passed into the URL\n template tag) to use as the URL template. Must be resolvable by the\n `reverse()` function. **If this option is not specified, the tag simply\n uses a relative url such as `?page=1` which is fine in most situations**\n- **url_param_name** - Determines the name of the `GET` parameter for the page number. The\n default is `\"page\"`. If no **url_view_name** is defined, this string\n is appended to the url as `?{{url_param_name}}=1`.\n- **url_extra_args** - **Only valid when url_view_name is set.** Additional arguments to\n pass into `reverse()` to resolve the URL.\n- **url_extra_kwargs** - **Only valid when `url_view_name` is set.** Additional named\n arguments to pass into `reverse()` to resolve the URL. Additionally,\n the template tag will add an extra parameter to this for the\n page, as it is assumed that if given a url_name, the page will\n be a named variable in the URL regular expression. In this case,\n the `url_param_name` continues to be the string used to represent\n the name. That is, by default, `url_param_name` is equal to `page`\n and thus it is expected that there is a named `page` argument in the\n URL referenced by `url_view_name`. This allows us to use pretty\n pagination URLs such as `/page/1`\n- **extra_pagination_classes** - A space separated list of CSS class names that\n will be added to the top level `