معرفی شرکت ها


ddh_django_utils-0.9.4


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

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

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

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

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

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

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

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

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

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

مشاهده بیشتر

توضیحات

Reusable Django app containing utilities for DDH projects
ویژگی مقدار
سیستم عامل -
نام فایل ddh_django_utils-0.9.4
نام ddh_django_utils
نسخه کتابخانه 0.9.4
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Jamie Norrish
ایمیل نویسنده jamie@artefact.org.nz
آدرس صفحه اصلی https://github.com/kcl-ddh/ddh_django_utils
آدرس اینترنتی https://pypi.org/project/ddh_django_utils/
مجوز Apache License, Version 2.0
ddh_django_utils ================ Provides a number of useful utilities for Django projects, particularly within the context of DDH projects. Pagination ---------- ``ddh_utils.utils`` provides the ``create_pagination`` function to generate Paginator and Page objects from the supplied parameters, handling any problems with the supplied page number. This just avoids repeating the example view code from the Django documentation. The ``ddh_utils_tags`` template tag library provides the ``display_pagination`` inclusion tag, which outputs the navigation for a set of results, based on the supplied page:: {% load ddh_utils_tags %} {% display_pagination querydict page %} This includes the template ``includes/pagination.html``. Haystack -------- ``ddh_utils.views`` provides ``SearchView`` and ``FacetedSearchView`` classes that have better pagination than those in Haystack's own views (making use of the ``create_pagination`` function), and also add the request's GET parameters to the context (under the variable name ``querydict``) for use in pagination and facetting. ``ddh_util_tags`` provides simple tags for creating URLs by adding and removing facets:: {% load ddh_utils_tags %} <a href="{% add_facet_link querydict name value %}">Add</a> <a href="{% remove_facet_link querydict "name:value" %}">Remove</a>


نحوه نصب


نصب پکیج whl ddh_django_utils-0.9.4:

    pip install ddh_django_utils-0.9.4.whl


نصب پکیج tar.gz ddh_django_utils-0.9.4:

    pip install ddh_django_utils-0.9.4.tar.gz