Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dstufft/dj-search-url
https://github.com/dstufft/dj-search-url
Last synced: 29 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dstufft/dj-search-url
- Owner: dstufft
- License: bsd-2-clause
- Created: 2012-09-09T23:46:12.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-09-09T23:46:29.000Z (over 12 years ago)
- Last Synced: 2024-12-15T06:22:37.122Z (about 1 month ago)
- Language: Python
- Size: 91.8 KB
- Stars: 21
- Watchers: 2
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
- starred-awesome - dj-search-url - (Python)
README
DJ-SEARCH-URL
===============This simple Django utility allows you to utilize the
`12factor `_ inspired
``SEARCH_URL`` environment variable to configure your Haystack application.Usage
-----Configure your Search index in ``settings.py`` from ``SEARCH_URL``::
HAYSTACK_CONNECTIONS = {"default": dj_search_url.conf()}
Parse an arbitrary Database URL::
HAYSTACK_CONNECTIONS = {"default": dj_search_url.conf("elasticsearch://..")}
Installation
------------Installation is simple too::
$ pip install dj-search-url