divio / aldryn-search

Haystack 2.0 search index for django CMS
Other
48 stars 77 forks source link

Load conf via Django's AppConfig #85

Closed martinburchell closed 6 years ago

martinburchell commented 6 years ago

This fixes a problem when running tests that use the override_settings decorator and aldryn-search's AppConf hasn't been initialised leading to errors like: AttributeError: 'Settings' object has no attribute 'ALDRYN_SEARCH_INDEX_BASE_CLASS'

You'll need to change INSTALLED_APPS to include aldryn_search.apps.AldrynSearchConfig

czpython commented 6 years ago

Thanks @martinburchell. Can you rebase with latest master and add the default app config constant to the init file?