Commit 8307996b by Clinton Blackburn Committed by Peter Fogg

Changed Elasticsearch settings

- Using localhost instead of 127.0.0.1 because, strangely, 127.0.01 no longer works on my machine.
- Removed useless ELASTICSEARCH_URL and ELASTICSEARCH_INDEX_NAME settings from base.py
parent 8d570cd6
......@@ -298,14 +298,11 @@ SWAGGER_SETTINGS = {
'permission_denied_handler': 'course_discovery.apps.api.views.api_docs_permission_denied_handler'
}
ELASTICSEARCH_URL = 'http://127.0.0.1:9200/'
ELASTICSEARCH_INDEX_NAME = 'catalog'
HAYSTACK_CONNECTIONS = {
'default': {
'ENGINE': 'course_discovery.apps.core.haystack_backends.SimplifiedElasticsearchSearchEngine',
'URL': ELASTICSEARCH_URL,
'INDEX_NAME': ELASTICSEARCH_INDEX_NAME,
'URL': 'http://localhost:9200/',
'INDEX_NAME': 'catalog',
},
}
......
......@@ -32,7 +32,7 @@ DATABASES = {
HAYSTACK_CONNECTIONS = {
'default': {
'ENGINE': 'haystack.backends.elasticsearch_backend.ElasticsearchSearchEngine',
'URL': os.environ.get('TEST_ELASTICSEARCH_URL', 'http://127.0.0.1:9200/'),
'URL': os.environ.get('TEST_ELASTICSEARCH_URL', 'http://localhost:9200/'),
'INDEX_NAME': 'catalog_test',
},
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment