Commit 443bf4ebab3b3c0b238552f111ba6012974b11bf

Authored by Gust
Committed by Sergio Oliveira
1 parent 2ac50238

Fix Whoosh settings and test settings to usu sqlite

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
@@ -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 = &#39;not-a-secret&#39; @@ -41,10 +41,7 @@ SECRET_KEY = &#39;not-a-secret&#39;
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 }