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.2.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

dj_haystack_url-0.2.0-py2.py3-none-any.whl (4.6 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for dj-haystack-url-0.2.0.tar.gz
Algorithm Hash digest
SHA256 bab8f2af8a28816b41f09da8f509bfe6b0c1f57e19f057de36ae4a0170188bf8
MD5 26f071a15ce9ee619fee7975fcaf12f1
BLAKE2b-256 d79e54ab353662f62db806f2509181b1c8fdebecb4f6037f3f25822b3e86c10c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dj_haystack_url-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f4c301ccfaa567ca044bf3a2221da345d23f14a18e5f629cedc927c7bee3a2c6
MD5 876fd1bf3f057cfbc69d257b76b879be
BLAKE2b-256 0a77e45a0e5cc533ba7a2df0bc364e289cc2f29cac0c1b409cae5ad5a42a82de

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