網頁錯誤訊息
ValueError: View function did not return a response.
The function either returned None or ended without a return statement.
app
form = m.SelectForm(request.form)
if request.method =='POST' and form.validate():
pla = request.form['pla']
detail= m.sql_read()
module
class SelectForm(Form):
pla = SelectField('選取地區', choices=[('Daiaj','大甲區'),('central','中區')])
html
<form method='post' action="{{url_for ('Select')}}">
{{ form.pla.label }}
{{ form.pla}}
<input type=submit name="see" value='查詢'>
</form>