Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dstufft/dj-search-url


https://github.com/dstufft/dj-search-url

Last synced: 29 days ago
JSON representation

Awesome Lists containing this project

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