我刚开始学习烧瓶,我被这个错误困住了。我在这里检查了很多这样的问题,但我不确定我的代码有什么问题。
from flask import Flask,url_for
from flask import make_response
from flask import request
from flask import render_template
from WebService.application import deploy_azure
app = Flask(__name__)
@app.route('/', methods=['GET'])
def my_form():
return render_template("xyz.html")
@app.route('/', methods=['POST'])
def login():
data = request.form['text']
resp = make_response(deploy_azure.deploy_function(data))
return resp
if __name__ == '__main__':
app.debug = True
app.run()