def get_app(app_label):
    try:
        # django >= 1.7
        from django.apps import apps
        return apps.get_app_config(app_label).models_module
    except __HOLE__:
        from django.db import models
        return models.get_app(app_label)
dataset/ETHPy150Open django-extensions/django-extensions/django_extensions/compat.py/get_app