In this part we’re going to set up a Postgres database to store the results of our word counts as well as SQLAlchemy, an Object Relational Mapper, and Alembic to handle database migrations. Updates: 02/09/2020: Upgraded to Python version 3.8.1 as well as the latest versions of Psycopg2, Flask-SQLAlchemy, and Flask-Migrate. See below for details. Explicitly install and use Flask-Script due to chang
![Flask by Example – Setting up Postgres, SQLAlchemy, and Alembic – Real Python](https://cdn-ak-scissors.b.st-hatena.com/image/square/06f8b6304bb1f0eb8d9898d4a584969793825fce/height=288;version=1;width=512/https%3A%2F%2Ffiles.realpython.com%2Fmedia%2FFlask-by-Example-Setting-up-Postgres-SQLAlchemy-and-Alembic_Watermarked.0cbf10a02bca.jpg)