def run(*args):
if not settings.configured:<EOL><INDENT>settings.configure(**DEFAULT_SETTINGS)<EOL><DEDENT>django.setup()<EOL>parent = os.path.dirname(os.path.abspath(__file__))<EOL>sys.path.insert(<NUM_LIT:0>, parent)<EOL>if "<STR_LIT>" in args:<EOL><INDENT>check_migrations()<EOL><DEDENT>else:<EOL><INDENT>django.core.management.call_command("<STR_LIT>", APP_NAME, *args)<EOL><DEDENT>
Check and/or create Django migrations.

If --check is present in the arguments then migrations are checked only.