SQLAlchemy warning: column won't be part of the declarative mapping

前端 未结 1 1749
谎友^
谎友^ 2021-01-24 04:35

trying to build to-do list app with python , flask and sqlalchemy; when creating a table to database i got this error

i run this command

\'from app imp         


        
相关标签:
1条回答
  • 2021-01-24 05:29

    I was having this same error. Turns out its just a litte syntax error. Column should be upcase so:

    id = db.Column(db.Integer, primary_key=True)
    item = db.Column(db.String(500))
    date = db.Column(db.Date)
    

    Should fix it.

    0 讨论(0)
提交回复
热议问题