Browse Source

Add haystack to django.

feature/python-error-tracking
Drew Larson 9 years ago
parent
commit
8036e47c61
  1. 9
      bikeshop_project/bikeshop/settings/base.py

9
bikeshop_project/bikeshop/settings/base.py

@ -29,7 +29,7 @@ INSTALLED_APPS = [
'django.contrib.sessions', 'django.contrib.sessions',
'django.contrib.messages', 'django.contrib.messages',
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'haystack',
'webpack_loader', 'webpack_loader',
'compressor', 'compressor',
@ -143,3 +143,10 @@ WEBPACK_LOADER = {
'IGNORE': ['.+\.hot-update.js', '.+\.map'] 'IGNORE': ['.+\.hot-update.js', '.+\.map']
} }
} }
HAYSTACK_CONNECTIONS = {
'default': {
'ENGINE': 'haystack.backends.whoosh_backend.WhooshEngine',
'PATH': os.path.join(os.path.dirname(__file__), 'whoosh_index'),
},
}
Loading…
Cancel
Save