peopledoc / django-esutils

Django ES Utils

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Django ESUtils

Common and easy way to manage ES backend in django based on elasticutils and elasticsearch-py.

Hacking

In order to hack on django-esutils, you'll need to set at least an Elasticsearch instance available from your machine.

You can install it manually or more simply, use a docker container like this:

docker run --net host dockerfile/elasticsearch

and then you can browse your ES server at: http://127.0.0.1:9200/

Configuration

add a local_settings.py file in your demo/demo_esutils directory, with these settings:

ES_URLS = [
    'http://127.0.0.1:9200',
]

(or change it to fit your ES target configuration)

Running tests

Now that your ES instance is ready, and your database connection set, simply run the tests using tox, preferrably in a virtualenv:

mkvirtualenv TOX
pip install tox
tox

About

Django ES Utils

License:MIT License


Languages

Language:Python 98.3%Language:Shell 1.2%Language:Makefile 0.5%