<repo_name>foonpcf/django-nextpage<file_sep>/README.rst
===============
Django NextPage
===============

django-nextpage is modified from django-pagination, but only previous and next page is provided.


Installation
============

Add `nextpage` to `INSTALLED_APPS`, like:

    INSTALLED_APPS = (
       # ...
       'nextpage',
    )


and `TEMPLATE_CONTEXT_PROCESSORS` should have `django.core.context_processors.request`, like:

    ("django.core.context_processors.auth",
    "django.core.context_processors.debug",
    "django.core.context_processors.i18n",
    "django.core.context_processors.media",
    "django.core.context_processors.request")



Usage
=====

Just like `django-pagination`, in fact it designed as a drop-in replacement. just load `next` templatetag 

    {% load nextpage %}

    {% autopaginate object_list 20 %}

    {% paginate %}
<file_sep>/setup.py
from setuptools import setup, find_packages

version = '0.1'

LONG_DESCRIPTION = """
Usage just like django-pagination but only next and previous page is provided.
"""

setup(
    name='django-nextpage',
    version=version,
    description="django-nextpage",
    long_description=LONG_DESCRIPTION,
    classifiers=[
        "Programming Language :: Python",
        "Topic :: Software Development :: Libraries :: Python Modules",
        "Framework :: Django",
        "Environment :: Web Environment",
    ],
    keywords='pagination,django',
    author='tzangms',
    author_email='<EMAIL>',
    url='http://github.com/tzangms/django-nextpage',
    license='BSD',
    packages=find_packages(),
    include_package_data=True,
    zip_safe=False,
)
