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,6 +166,7 @@ HAYSTACK_CUSTOM_HIGHLIGHTER = 'colab.utils.highlighting.ColabHighlighter' | ||
166 | HAYSTACK_CONNECTIONS = { | 166 | HAYSTACK_CONNECTIONS = { |
167 | 'default': { | 167 | 'default': { |
168 | 'ENGINE': 'haystack.backends.whoosh_backend.WhooshEngine', | 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
@@ -3,7 +3,7 @@ from setuptools import setup, find_packages | @@ -3,7 +3,7 @@ from setuptools import setup, find_packages | ||
3 | 3 | ||
4 | 4 | ||
5 | REQUIREMENTS = [ | 5 | REQUIREMENTS = [ |
6 | - 'Django>=1.7.8', | 6 | + 'Django>=1.7.8,<1.8', |
7 | 'pytz>=2011n', | 7 | 'pytz>=2011n', |
8 | 'django-hitcounter>=0.1.1', | 8 | 'django-hitcounter>=0.1.1', |
9 | 'django-tastypie>=0.12.1', | 9 | 'django-tastypie>=0.12.1', |
tests/settings.py
@@ -41,10 +41,7 @@ SECRET_KEY = 'not-a-secret' | @@ -41,10 +41,7 @@ SECRET_KEY = 'not-a-secret' | ||
41 | 41 | ||
42 | DATABASES = { | 42 | DATABASES = { |
43 | 'default': { | 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 | } |