def _detect_migration_layout(vars, apps):
DJANGO_MODULES = {}<EOL>for module in vars.MIGRATIONS_CHECK_MODULES:<EOL><INDENT>if module in apps:<EOL><INDENT>try:<EOL><INDENT>mod = __import__('<STR_LIT>'.format(module))  <EOL>DJANGO_MODULES[module] = '<STR_LIT>'.format(module)<EOL><DEDENT>except Exception:<EOL><INDENT>pass<EOL><DEDENT><DEDENT><DEDENT>return DJANGO_MODULES<EOL>
Detect migrations layout for plugins
:param vars: installer settings
:param apps: installed applications