formssolved flask AttributeError
class AddProcessForm(Form):
process_name = StringField('product_name')
step_number = StringField('number')
step_name = StringField('name')
submit = SubmitField('submit')
views
@manage.route('/admin/process/add', methods=['get', 'post'])
@csrf.exempt
def add_process():
form = AddProcessForm()
if form.validate_on_submit():
print('form',form)
print(form.process_name)
print(form.step_name)
print(form.step_number)
print((form.step_name1))
print(form.step_number1)
return redirect(url_for('manage.admin'))
return render_template("/manage/add_process.html", form=form)
頁面是可以通過js生成多行step信息,效果如下:
[enter image description here][1] [enter image description here][2] 請問我在麼在服務器拿到step_name,step_number,
I'm voting to close this question as off-topic because it contains Chinese which is not widely understood. – SparkAndShine
Please edit your question and write english sentences, this question is useless to other people not speaking chinese. – NaeiKinDus