def _detect_migration_layout(vars, apps):
    DJANGO_MODULES = {}

    for module in vars.MIGRATIONS_CHECK_MODULES:
        if module in apps:
            try:
                mod = __import__('{0}.migrations_django'.format(module))  # NOQA
                DJANGO_MODULES[module] = '{0}.migrations_django'.format(module)
            except Exception:
                pass
    return DJANGO_MODULES
Convenience function to get the first geometry from a shapefile.
dataset/ETHPy150Open nephila/djangocms-installer/djangocms_installer/django/__init__.py/_detect_migration_layout--crossover with--dataset/ETHPy150Open cgarrard/osgeopy-code/ospybook/ospybook/__init__.py/get_shp_geom