haystack connection
authorHarris Baptiste <harris.baptiste@iri.centrepompidou.fr>
Fri, 12 Aug 2016 10:56:09 +0200
changeset 111 93ce376a4cfd
parent 107 d82cb24d6443
child 112 201a73fdc0b5
haystack connection
src/iconolab/settings/dev.py.tmpl
--- a/src/iconolab/settings/dev.py.tmpl	Fri Aug 12 10:29:22 2016 +0200
+++ b/src/iconolab/settings/dev.py.tmpl	Fri Aug 12 10:56:09 2016 +0200
@@ -118,6 +118,15 @@
     }
 }
 
+# Haystack connection
+HAYSTACK_CONNECTIONS = {
+    'default': {
+        'ENGINE': 'haystack.backends.elasticsearch_backend.ElasticsearchSearchEngine',
+        'URL': 'http://127.0.0.1:9200/',
+        'INDEX_NAME': 'haystack',
+    },
+}
+
 CACHES = {
     'default': {
         'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',