def _exec_django_command(self, name, cwd, *args):
        cmd = 'python manage.py %s %s' % (name, " ".join(args))
        if not self._verbose:
            p = subprocess.Popen(
                cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
                shell=True, cwd=cwd
            )
            output = p.communicate()
        else:
            p = subprocess.Popen(cmd, shell=True, cwd=cwd)
            p.wait()
            output = None
        if p.returncode:
            if output:
                print >> sys.stderr, "\n".join(
                    [l for l in output if l is not None])
            print >> sys.stderr, "%s failed, check your configuration" % cmd
an iterable on the offsets and cubes for an annotation
dataset/ETHPy150Open tonioo/modoboa/modoboa/core/commands/deploy.py/DeployCommand._exec_django_command--crossover with--dataset/ETHPy150Open neurodata/ndstore/ocpca/ocpcadb.py/OCPCADB.annoCubeOffsets