Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Haystack configuration from environment variable

Project Description

Haystack configuration from environment variable

  • Free software: MIT license

Supported Backends

Support currently exists for Simple, Whoosh, Elasticsearch, Solr, and Xapian backends.


Installation is simple:

$ pip install dj-haystack-url


Configure your Haystack connections in from HAYSTACK_CONNECTIONS (default is optional):

HAYSTACK_CONNECTIONS = {'default': dj_haystack_url.config(default='simple')}

Parse an arbitrary Haystack connection URL:

HAYSTACK_CONNECTIONS = {'default': dj_haystack_url.parse('simple')}

URL schema

Engine Haystack Backend URL
Simple haystack.backends.simple_backend.SimpleEngine simple
Whoosh haystack.backends.whoosh_backend.WhooshEngine whoosh:PATH [1]
Elasticsearch haystack.backends.elasticsearch_backend.ElasticsearchSearchEngine elasticsearch:URL/INDEX_NAME
Solr haystack.backends.solr_backend.SolrEngine solr:URL
Xapian xapian_backend.XapianEngine xapian:PATH [1]
[1](1, 2) Whoosh and Xapian connect to an index on the file system. The same URL format is used, omitting the hostname, and using the “file” portion as the file path to the index.


0.1.0 (2014-01-11)

  • First release on PyPI.
Release History

Release History

This version
History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
dj_haystack_url-0.2.0-py2.py3-none-any.whl (4.6 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Nov 19, 2014
dj-haystack-url-0.2.0.tar.gz (5.3 kB) Copy SHA256 Checksum SHA256 Source Nov 19, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting