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.

Revisions

  1. guybowden created this gist May 23, 2017.
    22 changes: 22 additions & 0 deletions test_settings.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    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)