uninstall aldryn-haystack 0.4

This commit is contained in:
2018-04-03 17:17:39 +00:00
parent aad8fd1a95
commit 61be1c9b57
5 changed files with 0 additions and 50 deletions

View File

@@ -1,4 +0,0 @@
{
"installed-apps": [],
"package-name": "aldryn-haystack"
}

View File

@@ -1,43 +0,0 @@
# -*- coding: utf-8 -*-
from functools import partial
from aldryn_client import forms
class Form(forms.BaseForm):
def to_settings(self, data, settings):
from aldryn_addons.utils import djsenv, boolean_ish
from aldryn_haystack import haystack_url
s = settings
env = partial(djsenv, settings=settings)
s['DEFAULT_HAYSTACK_URL'] = env('DEFAULT_HAYSTACK_URL')
if env('DJANGO_MODE') == 'build':
s['HAYSTACK_CONNECTIONS'] = {
'default': {
'ENGINE': 'haystack.backends.simple_backend.SimpleEngine',
}
}
return s
if not s['DEFAULT_HAYSTACK_URL']:
return s
s['ALDRYN_HAYSTACK_DEBUG'] = boolean_ish(
env('ALDRYN_HAYSTACK_DEBUG', False))
s['DEFAULT_HAYSTACK_URL'] = env('DEFAULT_HAYSTACK_URL')
s.setdefault('HAYSTACK_CONNECTIONS', {})
s['HAYSTACK_CONNECTIONS']['default'] = haystack_url.parse(
url=s['DEFAULT_HAYSTACK_URL']
)
s['INSTALLED_APPS'].append('haystack')
if s['ALDRYN_HAYSTACK_DEBUG']:
s['LOGGING']['loggers']['elasticsearch.trace'] = {
'handlers': ['console'],
'level': 'INFO',
}
return s

View File

@@ -1 +0,0 @@
{}