Commit 443bf4ebab3b3c0b238552f111ba6012974b11bf
Committed by
Sergio Oliveira
1 parent
2ac50238
Exists in
master
and in
31 other branches
Fix Whoosh settings and test settings to usu sqlite
Showing
3 changed files
with
4 additions
and
6 deletions
Show diff stats
colab/settings.py
| ... | ... | @@ -166,6 +166,7 @@ HAYSTACK_CUSTOM_HIGHLIGHTER = 'colab.utils.highlighting.ColabHighlighter' |
| 166 | 166 | HAYSTACK_CONNECTIONS = { |
| 167 | 167 | 'default': { |
| 168 | 168 | 'ENGINE': 'haystack.backends.whoosh_backend.WhooshEngine', |
| 169 | + 'PATH': os.path.join(os.path.dirname(__file__), 'whoosh_index'), | |
| 169 | 170 | } |
| 170 | 171 | } |
| 171 | 172 | ... | ... |
setup.py
tests/settings.py
| ... | ... | @@ -41,10 +41,7 @@ SECRET_KEY = 'not-a-secret' |
| 41 | 41 | |
| 42 | 42 | DATABASES = { |
| 43 | 43 | 'default': { |
| 44 | - 'ENGINE': 'django.db.backends.postgresql_psycopg2', | |
| 45 | - 'HOST': 'localhost', | |
| 46 | - 'NAME': 'colab', | |
| 47 | - 'USER': 'colab', | |
| 48 | - 'PASSWORD': 'colab', | |
| 44 | + 'ENGINE': 'django.db.backends.sqlite3', | |
| 45 | + 'NAME': 'colab.sqlite', | |
| 49 | 46 | } |
| 50 | 47 | } | ... | ... |