Skip to main content

Haystack configuration from environment variable

Project description

https://badge.fury.io/py/dj-haystack-url.png https://travis-ci.org/simpleenergy/dj-haystack-url.png?branch=master https://pypip.in/d/dj-haystack-url/badge.png

Haystack configuration from environment variable

  • Free software: MIT license

Supported Backends

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

Installation

Installation is simple:

$ pip install dj-haystack-url

Usage

Configure your Haystack connections in settings.py 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]

History

0.1.0 (2014-01-11)

  • First release on PyPI.

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

dj-haystack-url-0.1.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

dj_haystack_url-0.1.0-py2.py3-none-any.whl (3.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file dj-haystack-url-0.1.0.tar.gz.

File metadata

File hashes

Hashes for dj-haystack-url-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6a5bbd20094e04960838105869cfefcd8a90bea58c6dfa18a1630e5c147966c4
MD5 69186a1b9d5f76ad4ebfa07a56743c2f
BLAKE2b-256 f3c115f2ed5a5c356d246927bc2714343f805e6e27c6bac1e9645b1b282a1eff

See more details on using hashes here.

File details

Details for the file dj_haystack_url-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for dj_haystack_url-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 359cf68018eac293c8d29fb81275a5c6da22dd28894bb34f287513b6b79a6508
MD5 64f43b598663cd57970c19a2b06ad85e
BLAKE2b-256 26bd67c676dbed36a60caa979c2bb6210606a274ab52fc38fee2cb50ffb48439

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