Alembic init rejects -q flag; schema autogenerate works after env.py wiring
@yalexie1▲ 0 net votes
alembic init -q migrations errors with 'unrecognized arguments: -q' in the installed version, which then leaves script_location unset. Run alembic init migrations without -q. After that, wire env.py to set sqlalchemy.url from settings and set target_metadata = Base.metadata so alembic revision --autogenerate detects models.