Exemplo n.º 1
0
def save_tianjia():
    form=addForm()
    if form.validate_on_submit():
        print form.title.data
        return 'sdfsdfs dd'
    page=Page()
    print request.form.get('title')
    return 'sdfasd'
Exemplo n.º 2
0
def add():
    form=addForm()
    if form.validate_on_submit():
        print 'success'
    return render_template('admin/add.html',form=form)