Alembic Error : No 'script_location' key found in configuration
08:33 04 Jul 2023

alembic.ini file:

[alembic]  
#path to migration scripts  
script_location = migrations

Script I am running:

alembic -n dev revision --autogenerate -m "alembic_migration_file"

My project directory:

|-migrations  
|--versions  
|----dev  
|----uat

I am running above script, not sure why it's not able to find the script_location from alembic config file.

python alembic