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
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file dj-haystack-url-0.1.0.tar.gz
.
File metadata
- Download URL: dj-haystack-url-0.1.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a5bbd20094e04960838105869cfefcd8a90bea58c6dfa18a1630e5c147966c4 |
|
MD5 | 69186a1b9d5f76ad4ebfa07a56743c2f |
|
BLAKE2b-256 | f3c115f2ed5a5c356d246927bc2714343f805e6e27c6bac1e9645b1b282a1eff |
File details
Details for the file dj_haystack_url-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: dj_haystack_url-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 359cf68018eac293c8d29fb81275a5c6da22dd28894bb34f287513b6b79a6508 |
|
MD5 | 64f43b598663cd57970c19a2b06ad85e |
|
BLAKE2b-256 | 26bd67c676dbed36a60caa979c2bb6210606a274ab52fc38fee2cb50ffb48439 |