def migrate_all():
if '<STR_LIT>' in settings.INSTALLED_APPS:<EOL><INDENT>return _south_migrate_all()<EOL><DEDENT>from django.core.management.commands import makemigrations, migrate<EOL>schema_args = [sys.executable, '<STR_LIT>']<EOL>for app in settings.INSTALLED_APPS:<EOL><INDENT>if not app.startswith('<STR_LIT>'):<EOL><INDENT>schema_args += [app]<EOL><DEDENT><DEDENT>schema_cmd = makemigrations.Command()<EOL>schema_cmd.run_from_argv(schema_args)<EOL>migrate_cmd = migrate.Command()<EOL>sys.stderr.write("<STR_LIT>")<EOL>return migrate_cmd.run_from_argv([sys.executable, '<STR_LIT>'])<EOL>
Create schema migrations for all apps specified in INSTALLED_APPS,
then run a migrate command.