def METHOD_NAME(args):
    """Run django manage commands for the given container(s).
    The containers must already be running via `docker-compose up`.
    """
    containers = [args.container]
    if args.container == "all":
        containers = [app.name for app in APPS]
    for container in containers:
        app = next(app for app in APPS if app.name == container)
        if len(containers) > 1:
            print(f"Running {app.name}-manage")
        subprocess.check_call(
            [
                "docker-compose",
                "-f",
                fspath(DOCKER_COMPOSE_DIR / "docker-compose.yml"),
                "exec",
                "-T",
                container,
                f"/app/{app.name}-manage",
            ]
            + args.manage_args,
            # This could be specified as --project-directory, but then there are
            # issues with .env file finding, which is used to set
            # COMPOSE_PROJECT_NAME. The docs suggest these issues were dealt
            # with in docker-compose v1.28+, but that’s not yet in any released
            # Ubuntu version.
            cwd=DOCKER_COMPOSE_DIR,
        )