معرفی شرکت ها


django-nextpage-1.0.2


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

django-nextpage
ویژگی مقدار
سیستم عامل -
نام فایل django-nextpage-1.0.2
نام django-nextpage
نسخه کتابخانه 1.0.2
نگهدارنده []
ایمیل نگهدارنده []
نویسنده tzangms
ایمیل نویسنده tzangms@gmail.com
آدرس صفحه اصلی http://github.com/StreetVoice/django-nextpage
آدرس اینترنتی https://pypi.org/project/django-nextpage/
مجوز BSD
# Django NextPage `django-nextpage` is modified from django-pagination, but only previous and next page is provided. Since SQL COUNT statement on large table has poor performance, lots of website turns to show just next and previous page link or button. ## How it works? `django-nextpage` only execute one SQL statement, no count, no next page determine query. For example: If you want to pagiante by 20, django-nextpage will query for 21 items, if queryset length is 21, then we have next page; if queryset length is 20 or less, then we don't have next page. ## Installation Add `nextpage` to `INSTALLED_APPS`, like: ```python INSTALLED_APPS = ( # ... 'nextpage', ) ``` and `TEMPLATE_CONTEXT_PROCESSORS` should have `django.core.context_processors.request`, like: ```python ("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 `nextpage` templatetag ```python {% load nextpage %} {% autopaginate object_list 20 %} {% paginate %} ``` or you can assign with different pagination template in `templates/nextpage` folder by ``` {% paginate "your_own_pagination.html" %} ```


نحوه نصب


نصب پکیج whl django-nextpage-1.0.2:

    pip install django-nextpage-1.0.2.whl


نصب پکیج tar.gz django-nextpage-1.0.2:

    pip install django-nextpage-1.0.2.tar.gz