@app.response("/process" , methods=['POST'])
def process():
return render_template('index.html')
答案 0 :(得分:0)
根据您提供的内容,这是我能想到的唯一解决方案。如果这不是您想要的,请随时提问,谢谢!
from Flask import request
@app.response("/process" , methods=['POST'])
def process():
if (request.method == "POST"):
<enter code here>
else:
return render_template('index.html')