Пример #1
0
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
        ])
Пример #2
0
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])
Пример #3
0
def perform_syncdb(settings):
	if check_settings_exists(settings):
		cmd.perform_syncdb(settings)