add elasticsearch bypass

This commit is contained in:
lza_menace 2020-09-27 05:54:38 -07:00
parent cede7269d0
commit 10298ced8f
2 changed files with 17 additions and 15 deletions

View File

@ -37,6 +37,7 @@ DB_PASS = 'zzzzzzzzz'
# Development
TEMPLATES_AUTO_RELOAD = True
ELASTICSEARCH_ENABLED = False
# Social
SOCIAL = {

View File

@ -4,6 +4,7 @@ from wowstash import config
def send_es(data):
if getattr(config, 'ELASTICSEARCH_ENABLED', False):
try:
es = Elasticsearch(
[getattr(config, 'ELASTICSEARCH_HOST', 'localhost')]