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.

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>

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
ddh_django_utils-0.9.4-py2-none-any.whl (14.0 kB) Copy SHA256 hash SHA256 Wheel py2 Oct 11, 2015
ddh_django_utils-0.9.4.tar.gz (8.7 kB) Copy SHA256 hash SHA256 Source None Oct 11, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page