【新手上路】-【flask项目】解决return binds[self._bind] 报TypeError: string indices must be integers错误

执行python manage.py shell时,老是报self._bind 的类型传错问题:见下图   查看flask_sqlalchemy第3方类之后,最后查到config.py中config中多配置SQLALCHEMY_BINDS值,把它配跟SQLALCHEMY_DATABASE_URI一样,导致上面执行shell命令时报错; 最后在configwe文件中删除SQLALCHEMY_BIND
相关文章
相关标签/搜索