Przeglądaj źródła

auto commit

master
jfinn 3 miesięcy temu
rodzic
commit
7a9770ed2a
1 zmienionych plików z 8 dodań i 0 usunięć
  1. 8
    0
      edan_v1/edan_v1/settings.py

+ 8
- 0
edan_v1/edan_v1/settings.py Wyświetl plik

@@ -207,6 +207,14 @@ HAYSTACK_CONNECTIONS_z = {
207 207
 }
208 208
 
209 209
 
210
+HAYSTACK_CONNECTIONS = {
211
+    'default': {
212
+        'ENGINE': 'haystack.backends.whoosh_backend.WhooshEngine',
213
+        'PATH': location('whoosh_index'),
214
+        'INCLUDE_SPELLING': True,
215
+    },
216
+}
217
+HAYSTACK_SIGNAL_PROCESSOR = 'haystack.signals.RealtimeSignalProcessor'
210 218
 # Password validation
211 219
 # https://docs.djangoproject.com/en/4.2/ref/settings/#auth-password-validators
212 220
 

Ładowanie…
Anuluj
Zapisz