The route () decorator decorated Functions () has to return
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
'Hello World!' # 没有关键字return
if __name__ == '__main__':
app.run()
TypeError: The view function did not return a valid response. The function either returned None or ended without a return statement.
Why build the URL
pass
from werkzeug import secure_filename 报错
from werkzeug.utils import secure_filename