Просмотр исходного кода

Merge pull request #148 from kasperisager/master

Fix Whoosh settings
Rafał Pitoń 12 лет назад
Родитель
Сommit
cb7561e184
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      deployment/settings.py

+ 3 - 2
deployment/settings.py

@@ -55,7 +55,8 @@ CACHES = {
 # http://django-haystack.readthedocs.org/en/latest/tutorial.html#modify-your-settings-py
 HAYSTACK_CONNECTIONS = {
     'default': {
-        'ENGINE': 'haystack.backends.whoosh_backend.',
+        'ENGINE': 'haystack.backends.whoosh_backend.WhooshEngine', # Misago uses Whoosh by default
+        'PATH': 'searchindex',
     },
 }
 
@@ -171,4 +172,4 @@ if 'test' in sys.argv:
     CACHES['default'] = {'BACKEND': 'django.core.cache.backends.dummy.DummyCache'}
     SKIP_SOUTH_TESTS = True
     MEDIA_URL = "http://media.domain.com/"
-    HAYSTACK_CONNECTIONS = {'default': {'ENGINE': 'haystack.backends.simple_backend.SimpleEngine',},}
+    HAYSTACK_CONNECTIONS = {'default': {'ENGINE': 'haystack.backends.simple_backend.SimpleEngine',},}