def load_indexes(): from djapian.utils import loading for app in settings.INSTALLED_APPS: try: loading.get_module(app, 'index') except loading.NoModuleError: pass
def load_indexes(): from djapian.utils import loading for app in settings.INSTALLED_APPS: try: loading.get_module(app, "index") except loading.NoModuleError: pass
def load_indexes(): from djapian.utils import loading for app_config in apps.get_app_configs(): try: module = app_config.module.__name__ loading.get_module(module, "index") except loading.NoModuleError: pass