hey. I have alembic.ini and there sqlalchemy.url = postgresql+asyncpg://{db_user}:{db_pass}@{db_host}:{db_port}/{db_name}?async_fallback=True
I also have app_settings.py from pydantic import BaseSettings, PostgresDsn, Field


class Settings(BaseSettings):
    db_url: PostgresDsn
    db_port: int
    db_user: str
    db_name: str
    db_pass: str
    db_host: str
    port: int
    host: str

    class Config:
        env_file = '.env'


settings = Settings() and .env # app configuration
HOST=127.0.0.1
PORT=8000

# db configuration
DB_HOST=localhost
DB_URL=postgresql+asyncpg://postgres:as@localhost:5432/logging
DB_PORT=5432
DB_NAME=logging
DB_USER=postgres
DB_PASS=as but when I run alembic revision --autogenerate -m "Database creation"
I got en error Traceback (most recent call last):
  File "/home/boika/PycharmProjects/logging/venv/bin/alembic", line 8, in <module>
    sys.exit(main())
  File "/home/boika/PycharmProjects/logging/venv/lib/python3.10/site-packages/alembic/config.py", line 617, in main
    CommandLine(prog=prog).main(argv=argv)
  File "/home/boika/PycharmProjects/logging/venv/lib/python3.10/site-packages/alembic/config.py", line 611, in main
    self.run_cmd(cfg, options)
  File "/home/boika/PycharmProjects/logging/venv/lib/python3.10/site-packages/alembic/config.py", line 588, in run_cmd
    fn(
  File "/home/boika/PycharmProjects/logging/venv/lib/python3.10/site-packages/alembic/command.py", line 236, in revision
    script_directory.run_env()
  File "/home/boika/PycharmProjects/logging/venv/lib/python3.10/site-packages/alembic/script/base.py", line 582, in run_env
    util.load_python_file(self.dir, "env.py")
  File "/home/boika/PycharmProjects/logging/venv/lib/python3.10/site-packages/alembic/util/pyfiles.py", line 94, in load_python_file
    module = load_module_py(module_id, path)
  File "/home/boika/PycharmProjects/logging/venv/lib/python3.10/site-packages/alembic/util/pyfiles.py", line 110, in load_module_py
    spec.loader.exec_module(module)  # type: ignore
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/boika/PycharmProjects/logging/migrations/env.py", line 80, in <module>
    run_migrations_online()
  File "/home/boika/PycharmProjects/logging/migrations/env.py", line 62, in run_migrations_online
    connectable = engine_from_config(
  File "/home/boika/PycharmProjects/logging/venv/lib/python3.10/site-packages/sqlalchemy/engine/create.py", line 804, in engine_from_config
    return create_engine(url, **options)
  File "<string>", line 2, in create_engine
  File "/home/boika/PycharmProjects/logging/venv/lib/python3.10/site-packages/sqlalchemy/util/deprecations.py", line 283, in warned
    return fn(*args, **kwargs)  # type: ignore[no-any-return]
  File "/home/boika/PycharmProjects/logging/venv/lib/python3.10/site-packages/sqlalchemy/engine/create.py", line 548, in create_engine
    u = _url.make_url(url)
  File "/home/boika/PycharmProjects/logging/venv/lib/python3.10/site-packages/sqlalchemy/engine/url.py", line 838, in make_url
    return _parse_url(name_or_url)
  File "/home/boika/PycharmProjects/logging/venv/lib/python3.10/site-packages/sqlalchemy/engine/url.py", line 893, in _parse_url
    components["port"] = int(components["port"])
ValueError: invalid literal for int() with base 10: '{db_port}'