Skip to main content

Reusable Django app containing utilities for DDH projects

Project description

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.

Haystack

ddh_utils.views provides SearchView and FacetedSearchView classes that have better pagination than those in Haystack’s own views, and also add the request’s GET parameters to the context for use in pagination and facetting.

ddh_util_tags provides simple tags for creating URLs by adding and removing facets.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ddh_django_utils-0.9.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

ddh_django_utils-0.9.1-py2-none-any.whl (6.7 kB view details)

Uploaded Python 2

File details

Details for the file ddh_django_utils-0.9.1.tar.gz.

File metadata

File hashes

Hashes for ddh_django_utils-0.9.1.tar.gz
Algorithm Hash digest
SHA256 2c0a2faee59779175003820564d593088b4241a990cc5bbb0e07f1aa192843f1
MD5 bdfaf05f48ce1267d9e8410a894c5279
BLAKE2b-256 5eb3e8205f280f1d8eeb0c50e298bcf5ba18c59f4a47fdcdf7a787e0abb231fb

See more details on using hashes here.

File details

Details for the file ddh_django_utils-0.9.1-py2-none-any.whl.

File metadata

File hashes

Hashes for ddh_django_utils-0.9.1-py2-none-any.whl
Algorithm Hash digest
SHA256 240d1903b00692914f1e9835479a4b0ccc19fcf3dafedc6e2a8a2edb0fadebff
MD5 9bf96ce76cc869599677e4491bd68fbe
BLAKE2b-256 334d09d60d34d03be3aa0fb1fe5c5afca06da74e68048c352c2a439f0ee1a2a8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page