def setup(): import searchapi searchapi.setup() from . import subjects # subjects module needs read_author_facet and solr_select_url. # Importing this module to access them will result in circular import. # Setting them like this to avoid circular-import. subjects.read_author_facet = read_author_facet if hasattr(config, 'plugin_worksearch'): subjects.solr_select_url = solr_select_url subjects.setup() from . import publishers, languages publishers.setup() languages.setup()
def setup(): import searchapi searchapi.setup()