{
"info": {
"author": "Jason McClellan",
"author_email": "jason@jasonmccllelan.net",
"bugtrack_url": null,
"classifiers": [
"Development Status :: 4 - Beta",
"Framework :: Django",
"Framework :: Django :: 1.4",
"Framework :: Django :: 1.5",
"Framework :: Django :: 1.6",
"Framework :: Django :: 1.7",
"Framework :: Django :: 1.8",
"Framework :: Django :: 1.9",
"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"
],
"description": "===========================\nDjango Bootstrap Pagination\n===========================\n\n**Note:** This version is compatible with Bootstrap 3.x only! Please use the 1.0.x branch for Bootstrap 2 support.\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.3+\n\n.. contents ::\n\n------------\nInstallation\n------------\n\n**PIP**\n\n pip install django-bootstrap-pagination\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-----\nUsage\n-----\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 {% load bootstrap_pagination %}\n\n==================\nbootstrap_paginate\n==================\n\nTakes a `Django Paginator instance `_\nas an argument to build a jump to page element.\n\n**All Optional Arguments**\n\nrange\n Defines the maximum number of page links to show\n\nshow_prev_next\n Boolean. Defines whether or not to show the Previous and Next links. (Accepts \"true\" or \"false\")\n\nprevious_label\n The label to use for the Previous link\n\nnext_label\n The label to use for the Next link\n\nshow_first_last\n Boolean. Defines whether or not to show the First and Last links. (Accepts \"true\" or \"false\")\n\nfirst_label\n The label to use for the First page link\n\nlast_label\n The label to use for the Last page link\n\nurl_view_name\n A named URL reference (such as one that might get passed inti the URL template tag) to use as\n the URL template. Must be resolvable by the reverse() function. **If this option is not\n specified, the tag simply uses a relative url such as \"?page=1\" which is fine in most\n situations**\n\nurl_param_name\n Determines the name of the GET parameter for the page number. The default is \"page\". If no \n **url_view_name** is defined, this string is appended to the url as \"?{{url_param_name}}=1\".\n \nurl_extra_args\n **Only valid when url_view_name is set.**\n Additional arguments to pass into reverse() to resolve the URL.\n\nurl_extra_kwargs\n **Only valid when url_view_name is set.**\n Additional named arguments to pass into reverse() to resolve the URL. Additionally,the\n template tag will add an extra parameter to this for the page, as it is assumed that if\n given a url_name, the page will be a named variable in the URL regular expression. In\n this case, the **url_param_name** continues to be the string used to represent the name.\n That is, by default, **url_param_name** is equal to \"page\" and thus it is expected that\n there is a named \"page\" argument in the URL referenced by **url_view_name**. This allows\n us to use pretty pagination URLs such as \"/page/1\"\n\n**Basic Usage**\n\nThe following will show a pagination bar with a link to every page, a previous link, and a next link:\n\n {% bootstrap_paginate page_obj %}\n\nThe following will show a pagination bar with at most 10 page links, a previous link, and a next link:\n\n {% bootstrap_paginate page_obj range=10 %}\n\nThe following will show a pagination bar with at most 10 page links, a first page link, and a last page link:\n\n {% bootstrap_paginate page_obj range=10 show_prev_next=\"false\" show_first_last=\"true\" %}\n\n**Advanced Usage**\n\nGiven a url configured such as:\n\n archive_index_view = ArchiveIndexView.as_view(\n date_field='date',\n paginate_by=10, \n allow_empty=True,\n queryset=MyModel.all(),\n template_name='example/archive.html' \n )\n \n urlpatterns = patterns(\n 'example.views',\n url(r'^$', archive_index_view, name='archive_index'),\n url(r'^page/(?P\\d+)/$', archive_index_view,\n name='archive_index_paginated'))\n\n\nWe could simply use the basic usage (appending ?page=#) with the *archive_index* URL above,\nas the *archive_index_view* class based generic view from django doesn't care how it gets\nthe page parameter. However, if we want pretty URLs, such as those defined in the\n*archive_index_paginated* URL (ie: /page/1), we need to define the URL in our template tag:\n\n\n {% bootstrap_paginate page_obj url_view_name=\"archive_index_paginated\" %}\n\nBecause we are using a default page parameter name of \"page\" and our URL requires no other\nparameters, everything works as expected. If our URL required additional parameters, we\nwould pass them in using the optional arguments **url_extra_args** and **url_extra_kwargs**.\nLikewise, if our page parameter had a different name, we would pass in a different\n**url_param_name** argument to the template tag.\n\n===============\nbootstrap_pager\n===============\n\nA much simpler implementation of the Bootstrap Pagination functionality is the Pager, which\nsimply provides a Previous and Next link.\n\n**All Optional Arguments**\n\nprevious_label\n Defines the label for the Previous link\n\nnext_label\n Defines the label for the Next link\n\nprevious_title\n Defines the link title for the previous link\n\nnext_title\n Defines the link title for the next link\n\ncentered\n Boolean. Defines whether or not the links are centered. Defaults to false.\n (Accepts \"true\" or \"false\")\n \nurl_view_name\n A named URL reference (such as one that might get passed inti the URL template tag) to use as\n the URL template. Must be resolvable by the reverse() function. **If this option is not\n specified, the tag simply uses a relative url such as \"?page=1\" which is fine in most\n situations**\n\nurl_param_name\n Determines the name of the GET parameter for the page number. The default is \"page\". If no \n **url_view_name** is defined, this string is appended to the url as \"?{{url_param_name}}=1\".\n \nurl_extra_args\n **Only valid when url_view_name is set.**\n Additional arguments to pass into reverse() to resolve the URL.\n\nurl_extra_kwargs\n **Only valid when url_view_name is set.**\n Additional named arguments to pass into reverse() to resolve the URL. Additionally,the\n template tag will add an extra parameter to this for the page, as it is assumed that if\n given a url_name, the page will be a named variable in the URL regular expression. In\n this case, the **url_param_name** continues to be the string used to represent the name.\n That is, by default, **url_param_name** is equal to \"page\" and thus it is expected that\n there is a named \"page\" argument in the URL referenced by **url_view_name**. This allows\n us to use pretty pagination URLs such as \"/page/1\"\n\nurl_anchor\n The anchor to use in URLs. Defaults to None.\n\n**Usage**\n\nUsage is basically the same as for bootstrap_paginate. The simplest usage is:\n\n {% bootstrap_pager page_obj %}\n\nA somewhat more advanced usage might look like:\n\n {% bootstrap_pager page_obj previous_label=\"Newer Posts\" next_label=\"Older Posts\" url_view_name=\"post_archive_paginated\" %}",
"description_content_type": null,
"docs_url": null,
"download_url": "UNKNOWN",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "https://github.com/jmcclell/django-bootstrap-pagination",
"keywords": "django bootstrap pagination templatetag",
"license": "MIT licence, see LICENCE",
"maintainer": null,
"maintainer_email": null,
"name": "django-bootstrap-pagination-vinta",
"package_url": "https://pypi.org/project/django-bootstrap-pagination-vinta/",
"platform": "UNKNOWN",
"project_url": "https://pypi.org/project/django-bootstrap-pagination-vinta/",
"project_urls": {
"Download": "UNKNOWN",
"Homepage": "https://github.com/jmcclell/django-bootstrap-pagination"
},
"release_url": "https://pypi.org/project/django-bootstrap-pagination-vinta/1.6.1/",
"requires_dist": null,
"requires_python": null,
"summary": "Render Django Page objects as Bootstrap 3.x Pagination compatible HTML",
"version": "1.6.1"
},
"last_serial": 4134126,
"releases": {
"1.6.1": [
{
"comment_text": "",
"digests": {
"md5": "43892ce168aa6ef860f673a57b6e73fa",
"sha256": "ccfc76fddcb5a6fd60529fd1f4f7e3a015ba2527f0812fe203c20cca08152ce4"
},
"downloads": -1,
"filename": "django-bootstrap-pagination-vinta-1.6.1.tar.gz",
"has_sig": false,
"md5_digest": "43892ce168aa6ef860f673a57b6e73fa",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 10260,
"upload_time": "2016-08-10T12:13:12",
"url": "https://files.pythonhosted.org/packages/74/6d/887ac65c6af0595d06edcaa672b96752529f88b11e1227ba1ff4f2bcf647/django-bootstrap-pagination-vinta-1.6.1.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "43892ce168aa6ef860f673a57b6e73fa",
"sha256": "ccfc76fddcb5a6fd60529fd1f4f7e3a015ba2527f0812fe203c20cca08152ce4"
},
"downloads": -1,
"filename": "django-bootstrap-pagination-vinta-1.6.1.tar.gz",
"has_sig": false,
"md5_digest": "43892ce168aa6ef860f673a57b6e73fa",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 10260,
"upload_time": "2016-08-10T12:13:12",
"url": "https://files.pythonhosted.org/packages/74/6d/887ac65c6af0595d06edcaa672b96752529f88b11e1227ba1ff4f2bcf647/django-bootstrap-pagination-vinta-1.6.1.tar.gz"
}
]
}