Exemplo n.º 1
0
def create_live():
    form = LiveForm()
    if form.validate_on_submit():
        form.create_live()
        flash('直播创建成功', 'success')
        return redirect(url_for('live.manage'))
    return render_template('live/create_live.html', form=form)
Exemplo n.º 2
0
def create_live():
    form = LiveForm()
    if form.validate_on_submit():
        form.create_live()
        flash('create success', 'success')
        return redirect(url_for('admin.lives'))
    return render_template('admin/create_live.html', form=form)
Exemplo n.º 3
0
def create_live():
    form = LiveForm()
    if form.validate_on_submit():
        form.create_live()
        flash('直播创建成功', 'success')
        return redirect(url_for('admin.lives'))
    return render_template('admin/create_live.html', form=form)
Exemplo n.º 4
0
def create_live():
    form = LiveForm()
    if form.validate_on_submit():
        form.create_live()
        flash("直播创建成功", "success")
        return redirect(url_for("admin.lives"))
    return render_template("admin/create_live.html", form=form)
Exemplo n.º 5
0
def create_live():
    form = LiveForm()
    if form.validate_on_submit():
        form.create_live()
        flash('直播创建成功', 'success')
        return redirect(url_for('admin.lives'))
    for field in form:
        print(field, field.label, field.data)
    return render_template('admin/create_live.html', form=form)