def runserver(conf): if is_valid_conf(conf): perform_syncdb(conf) subprocess.call([ "python", "manage.py", "runserver", "127.0.0.1:8080", "--settings=settings.%s" % conf ])
def runserver(conf): if is_valid_conf(conf): perform_syncdb(conf) subprocess.call(["python", "manage.py", "runserver", "127.0.0.1:8080", "--settings=settings.%s" % conf])
def perform_syncdb(settings): if check_settings_exists(settings): cmd.perform_syncdb(settings)