I read (and look) about Flask-Migrate here: https://realpython.com/blog/python/flask-by-example-part-2-postgres-sqlalchemy-and-alembic/ and here https: // www. youtube.com/watch?v=YJibNSI-iaE#t=21
and do all of this lesson:
- I started the local postgres server (using Postgres.App, which started the server in postgresql: // localhost: 5432)
- updated configurations according to the specified tutorial
- updated app.py, created models.py, etc.
After installing Flask-Migrate and running
python manage.py db init python manage.py db migrate
it should detect all tables declared in models.py.
In my case, it does not detect anything. And, based on the comments on the textbook, this is not just my business. So how do I do this job?
python flask postgresql alembic flask-migrate
kurtgn
source share