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.2.0.tar.gz
.
File metadata
- Download URL: dj-haystack-url-0.2.0.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bab8f2af8a28816b41f09da8f509bfe6b0c1f57e19f057de36ae4a0170188bf8 |
|
MD5 | 26f071a15ce9ee619fee7975fcaf12f1 |
|
BLAKE2b-256 | d79e54ab353662f62db806f2509181b1c8fdebecb4f6037f3f25822b3e86c10c |
File details
Details for the file dj_haystack_url-0.2.0-py2.py3-none-any.whl
.
File metadata
- Download URL: dj_haystack_url-0.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4c301ccfaa567ca044bf3a2221da345d23f14a18e5f629cedc927c7bee3a2c6 |
|
MD5 | 876fd1bf3f057cfbc69d257b76b879be |
|
BLAKE2b-256 | 0a77e45a0e5cc533ba7a2df0bc364e289cc2f29cac0c1b409cae5ad5a42a82de |