Commit 82526dcc7c4159fad529e5e94d18f4357c20a5fb
1 parent
4272b47a
Exists in
master
and in
39 other branches
Adding haystack to project
Showing
2 changed files
with
9 additions
and
0 deletions
Show diff stats
requirements.txt
src/colab/custom_settings.py
| ... | ... | @@ -15,6 +15,13 @@ LANGUAGES = ( |
| 15 | 15 | |
| 16 | 16 | LANGUAGE_CODE = 'pt-br' |
| 17 | 17 | |
| 18 | +HAYSTACK_CONNECTIONS = { | |
| 19 | + 'default': { | |
| 20 | + 'ENGINE': 'haystack.backends.whoosh_backend.WhooshEngine', | |
| 21 | + 'PATH': os.path.join(os.path.dirname(__file__), 'whoosh_index'), | |
| 22 | + } | |
| 23 | +} | |
| 24 | + | |
| 18 | 25 | INSTALLED_APPS = INSTALLED_APPS + ( |
| 19 | 26 | |
| 20 | 27 | # Not standard apps |
| ... | ... | @@ -24,6 +31,7 @@ INSTALLED_APPS = INSTALLED_APPS + ( |
| 24 | 31 | 'django_mobile', |
| 25 | 32 | 'django_browserid', |
| 26 | 33 | 'conversejs', |
| 34 | + 'haystack', | |
| 27 | 35 | |
| 28 | 36 | # Own apps |
| 29 | 37 | 'super_archives', | ... | ... |