Metadata-Version: 2.4
Name: dj-search-url
Version: 0.1
Summary: Use Search URLs in your Django Haystack Application.
Home-page: https://github.com/dstufft/dj-search-url
Author: Donald Stufft
Author-email: donald.stufft@gmail.com
License-File: LICENSE
Provides-Extra: tests
Requires-Dist: pytest; extra == "tests"
Dynamic: author
Dynamic: author-email
Dynamic: description
Dynamic: home-page
Dynamic: license-file
Dynamic: provides-extra
Dynamic: summary


DJ-Search-URL
===============

This simple Django utility allows you to utilize the
`12factor <http://www.12factor.net/backing-services>`_ 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
