【问题标题】:db.session.commit() is not working on importing CSV file in postgresql(Heroku)db.session.commit() 无法在 postgresql(Heroku) 中导入 CSV 文件
【发布时间】:2020-05-04 15:30:27
【问题描述】:

db.session.add() 正在工作,但是当我要在 postgresql(Heroku) 中导入 CSV 文件时 db.session.commit() 不起作用

【问题讨论】:

    标签: python-3.x flask flask-sqlalchemy heroku-postgres


    【解决方案1】:

    我认为这个问题来自 CS50 Project2。请右键单击books.csv,然后单击edit 文件。之后在第一行删除文件的标题。它们是isbn, author, title, year,并检查每个值是否用,(逗号)分隔。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-12-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-02-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多