Python

Kamal Ghimire
Kamal Ghimire
10,140 Points

TypeError: column() got an unexpected keyword argument 'default'

class Portfolio(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    created = db.column('Created', db.DateTime, default=datetime.datetime.now)
    fname = db.column('fName', db.String())
    lname = db.column('lName', db.String())
    age= db.column('Age', db.String())
    url = db.column('URL', db.String())
    url_tag = db.column('Alt Tag', db.String())

[MOD: added ```python formatting -cf]

1 Answer

Chris Freeman
MOD
Chris Freeman
Treehouse Moderator 64,074 Points

You have a mix of column and Column Should they all be capitalized?