RuntimeError RuntimeError: The session is unavailable because no secret key was set. Set the secret_key on the application to something unique and secret. 当运行flask项目遇到这个问题. 如果有setting文件: SECRET_KEY = 'adgg4df2g452hg245d74g4g' # 随便写 如果在当前app初始化文件__ini…