Skip to content

Instantly share code, notes, and snippets.

@guybowden
Created May 23, 2017 22:15
Show Gist options
  • Save guybowden/c3e7337c97b14fe7641dde43ec413f8f to your computer and use it in GitHub Desktop.
Save guybowden/c3e7337c97b14fe7641dde43ec413f8f to your computer and use it in GitHub Desktop.
from base import *
SEARCH_INDEX = os.environ.get('SEARCH_INDEX', 'test_haystack')
HAYSTACK_CONNECTIONS = {
'default': {
'ENGINE': os.environ.get('HAYSTACK_ENGINE', 'haystack.backends.elasticsearch_backend.ElasticsearchSearchEngine'),
'URL': ELASTICSEARCH_URL,
'INDEX_NAME': SEARCH_INDEX,
'KWARGS': ELASTICSEARCH_KWARGS
},
}
# disable realtime index signal processing
# HAYSTACK_SIGNAL_PROCESSOR = 'haystack.signals.BaseSignalProcessor'
CELERY_ALWAYS_EAGER = False
DEBUG = False
TEMPLATE_DEBUG = False
import logging
logging.disable(logging.ERROR)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment