我有一个 Flask 应用程序,我正在尝试将其部署在 Heroku 上。它在工头的领导下工作得很好,但是当我部署它时,我的登录过程失败并出现错误:
类型错误:“unicode”没有缓冲区接口(interface)
发生错误的代码行如下所示: person = verify_email_password(email, request.form["xyzABC123"])
通过谷歌搜索,我发现最近(2014 年 6 月上旬)setuptools 中的回归导致了此错误,但我没有使用 setuptools。
最佳答案
将 Werkzeug 升级到 0.9.6(根据此讨论:https://github.com/miguelgrinberg/flasky/issues/17)今天对我有用。
关于python - Heroku 上的 Flask 应用程序出现错误 : TypeError: 'unicode' does not have the buffer interface,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24144934/