Alembic Custom file name template # alembic.ini file_template = %%(year)d_%%(month).2d_%%(day).2d_%%(hour).2d%%(minute).2d-%%(rev)s_%%(slug)s Overide sqlalchemy database url from config file # env.py config.set_main_option("sqlalchemy.url", app_config.POSTGRES_DSN)