{ "info": { "author": "Filip Wasilewski", "author_email": "en@ig.ma", "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 :: 2.5", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Infinite Pagination for Django\n==============================\n\nThis is a very simple helper for Django 1.4 that does one thing: efficiently\npaginates large object collections on systems where using standard Django\nPaginator is impractical because of significant ``count(*)`` query\noverhead (i.e. PostgreSQL).\n\nUnder the hood it uses a single query to retrieve objects for the current page\nand check for availability of a successive page.\n\nThe ``InfinitePaginator`` is a replacement for Django\n``django.core.paginator.Paginator``.\n\nQuick Start\n-----------\n\nInclude ``django-infinite-pagination`` in your requirements file\n(or ``pip install django-infinite-pagination``) and add ``infinite_pagination``\nto ``INSTALLED APPS``.\n\nThen set the ``paginator_class`` attribute of your ``ListView``-based view to\n``InfinitePaginator`` and specify ``paginate_by`` attribute::\n\n class ArticleListView(ListView):\n model = Article\n paginate_by = 10\n paginator_class = InfinitePaginator\n\nTo display pagination links in a template load the ``infinite_pagination``\ntemplate tags and put ``{% paginate %}`` in the place you would like the\npagination links to show up::\n\n {% load infinite_pagination %}\n\n {% for object in object_list %}\n {{ object }}\n {% endfor %}\n\n {% paginate %}\n\n\nA generic ``pagination/infinite_pagination.html`` template that works well with\nTwitter Bootstrap stylesheet is provided by this application. Adjust it to your\nrequirements.\n\nPaginating in Templates\n-----------------------\n\nSometimes application views cannot be modified and the pagination can only be\ndone at the template level. The ``autopaginate`` template tag is provided\nas a last resort of applying pagination to object lists inside templates::\n\n {% load infinite_pagination %}\n\n {% autopaginate object_list per_page=10 as paginated_list %}\n\n {% for object in paginated_list %}\n {{ object }}\n {% endfor %}\n\n {% paginate %}\n\n\nThe ``autopaginate`` tag takes a queryset and a number of items per page\nas input and returns a page slice for displaying in a template. Current page\nnumber is retrieved from template context or ``page`` request GET params.\nIt can also be specified as an optional tag param::\n\n {% autopaginate object_list per_page=10 page=2 as paginated_list %}\n\nThe tag also sets ``paginator`` and ``page_obj`` template context variables for\nthe ``paginate`` tag that uses them to render navigation links.\n\nLicense\n-------\n\n`django-infinite-pagination` is released under the BSD license.\n\nOther Resources\n---------------\n\n- `GitHub repository `_\n- `PyPi Package site `_", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/nigma/django-infinite-pagination/zipball/master", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/nigma/django-infinite-pagination", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "django-infinite-pagination-mega", "package_url": "https://pypi.org/project/django-infinite-pagination-mega/", "platform": "", "project_url": "https://pypi.org/project/django-infinite-pagination-mega/", "project_urls": { "Download": "https://github.com/nigma/django-infinite-pagination/zipball/master", "Homepage": "https://github.com/nigma/django-infinite-pagination" }, "release_url": "https://pypi.org/project/django-infinite-pagination-mega/1.1/", "requires_dist": null, "requires_python": "", "summary": "Infinite pagination for Django.", "version": "1.1" }, "last_serial": 3288162, "releases": { "1.1": [ { "comment_text": "", "digests": { "md5": "4615205ef3f8fc43e0eddc0ba40f0d98", "sha256": "0b28fb0a8da4224616c062cc065fe96b3d58e5ff68008f8cdae092e8232cb05d" }, "downloads": -1, "filename": "django-infinite-pagination-mega-1.1.tar.gz", "has_sig": false, "md5_digest": "4615205ef3f8fc43e0eddc0ba40f0d98", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7174, "upload_time": "2017-10-29T06:16:36", "url": "https://files.pythonhosted.org/packages/2f/16/75dcab3b5599ed4c11b05cf58774b0f3de7850a9a37d586fddf2e9555337/django-infinite-pagination-mega-1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4615205ef3f8fc43e0eddc0ba40f0d98", "sha256": "0b28fb0a8da4224616c062cc065fe96b3d58e5ff68008f8cdae092e8232cb05d" }, "downloads": -1, "filename": "django-infinite-pagination-mega-1.1.tar.gz", "has_sig": false, "md5_digest": "4615205ef3f8fc43e0eddc0ba40f0d98", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7174, "upload_time": "2017-10-29T06:16:36", "url": "https://files.pythonhosted.org/packages/2f/16/75dcab3b5599ed4c11b05cf58774b0f3de7850a9a37d586fddf2e9555337/django-infinite-pagination-mega-1.1.tar.gz" } ] }