Browse Source

Add haystack to django.

feature/python-error-tracking
Drew Larson 8 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.messages',
'django.contrib.staticfiles',
'haystack',
'webpack_loader',
'compressor',
@ -142,4 +142,11 @@ WEBPACK_LOADER = {
'POLL_INTERVAL': 0.1,
'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