Пример #1
0
def load_indexes():
    from djapian.utils import loading
    for app in settings.INSTALLED_APPS:
        try:
            loading.get_module(app, 'index')
        except loading.NoModuleError:
            pass
Пример #2
0
def load_indexes():
    from djapian.utils import loading
    for app in settings.INSTALLED_APPS:
        try:
            loading.get_module(app, "index")
        except loading.NoModuleError:
            pass
Пример #3
0
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