光阴似箭催人老,日月如移越少年。
Try changing the startup mode to debug where the flask app is started.
app.run(debug=True)
You can print out the error reason.
Why should you use livereload?Flask自带reload机制的,修改代码以后保存就会reload。所以你直接app.run()?
livereload
app.run()
f.save(path.join(upload_path, secure_filename(f.filename))) # Compare the difference between my code and the corresponding code there, thank you!
Try changing the startup mode to debug where the flask app is started.
app.run(debug=True)
You can print out the error reason.
Why should you use
livereload
?Flask自带reload机制的,修改代码以后保存就会reload。所以你直接app.run()
?f.save(path.join(upload_path, secure_filename(f.filename)))
# Compare the difference between my code and the corresponding code there, thank you!