Commit 998a1f761e97f7396265e6e65d063007d013a62b
1 parent
1eaf769c
Exists in
workin_whoosh_temp
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
... | ... | @@ -169,6 +169,7 @@ HAYSTACK_CUSTOM_HIGHLIGHTER = 'colab.utils.highlighting.ColabHighlighter' |
169 | 169 | HAYSTACK_CONNECTIONS = { |
170 | 170 | 'default': { |
171 | 171 | 'ENGINE': 'haystack.backends.whoosh_backend.WhooshEngine', |
172 | + 'PATH': os.path.join(os.path.dirname(__file__), 'whoosh_index'), | |
172 | 173 | } |
173 | 174 | } |
174 | 175 | ... | ... |
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 | } | ... | ... |