Answer the question
In order to leave comments, you need to log in
Why nothing happens when adding a table in Postgresql?
I'm trying to create and add a table in Postgresql, but something doesn't work.
create a table
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
usenmr = db.Column(db.String(10), unique=True)
app.config['SQLALCHEMY_DATABASE_URI'] = 'postgresql://postgres:[email protected]/testtab'
db = SQLAlchemy(app)
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