Answer the question
In order to leave comments, you need to log in
Swears at arguments Unique, nullable, primary_key, etc.?
There is a code where I create a database table.
I had a problem with sqlite, I did not see the tables through the terminal, well, let's omit this, and after my attempts to solve this problem, another one appeared.
when I write
and the Unique argument is highlighted in yellow, and when driving on it, it says " Unexpected argument "
If I remove it, then this error will go to the primary_key.
when launching a web application, it gives an error: TypeError: Column() got an unexpected keyword argument 'unique' email = db.Column(db.String(80), unique = True)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question