增加这行代码,值可以随便写
app.secret_key = "sdkfjlqjluio23u429037907!@#!@#!@@"
使用session、flash需要secret_key
RuntimeError
RuntimeError: the session is unavailable because no secret key was set. Set the secret_key on the application to something unique and secret.
Traceback (most recent call