The `Config` class is used just for Pydantic configuration. You can read more at <ahref="https://pydantic-docs.helpmanual.io/usage/model_config/"class="external-link"target="_blank">Pydantic Model Config</a>
!!! tip
The `model_config` attribute is used just for Pydantic configuration. You can read more at <ahref="https://docs.pydantic.dev/latest/usage/model_config/"class="external-link"target="_blank">Pydantic Model Config</a>.
The `Config` class is used just for Pydantic configuration. You can read more at <ahref="https://docs.pydantic.dev/1.10/usage/model_config/"class="external-link"target="_blank">Pydantic Model Config</a>.
!!! info
In Pydantic version 1 the configuration was done in an internal class `Config`, in Pydantic version 2 it's done in an attribute `model_config`. This attribute takes a `dict`, and to get autocompletion and inline errors you can import and use `SettingsConfigDict` to define that `dict`.
Here we define the config `env_file` inside of your Pydantic `Settings` class, and set the value to the filename with the dotenv file we want to use.
### Creating the `Settings` only once with `lru_cache`