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.


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>

Project details

Download files

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

Files for ddh_django_utils, version 0.9.4
Filename, size File type Python version Upload date Hashes
Filename, size ddh_django_utils-0.9.4-py2-none-any.whl (14.0 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size ddh_django_utils-0.9.4.tar.gz (8.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page