elasticutils/test_settings.py

27 строки
465 B
Python

import os
ROOT = os.path.abspath(os.path.dirname(__file__))
ES_URLS = ['http://localhost:9200']
ES_INDEXES = {'default': ['elasticutilstest']}
ES_TIMEOUT = 10
ES_DISABLED = False
CELERY_ALWAYS_EAGER = True
SECRET_KEY = 'super_secret'
TEMPLATE_DIRS = ('%s/elasticutils/templates' % ROOT,)
DATABASES = {
'default': {
'NAME': ':memory:',
'ENGINE': 'django.db.backends.sqlite3'
}
}
INSTALLED_APPS = [
'elasticutils.contrib.django'
]