def get_apps_from_cache():
    try:
        from django.apps import apps
        return [app.models_module for app in apps.get_app_configs() if app.models_module]
    except __HOLE__:
        from django.db.models.loading import cache
        return cache.get_apps()
dataset/ETHPy150Open django-extensions/django-extensions/django_extensions/compat.py/get_apps_from_cache