Skip to content

Commit

Permalink
Refactor settings initialization to call model_rebuild at the end.
Browse files Browse the repository at this point in the history
    - Add model_rebuild call at the end of `settings.py`.
  • Loading branch information
jag-k committed Nov 21, 2024
1 parent e7d75d0 commit be60ff1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pydantic_settings_export/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,6 @@ def validate_env_file(cls, data: Any) -> Any:
print("Loading env file", f)
load_dotenv(file)
return data


Settings.model_rebuild()

0 comments on commit be60ff1

Please sign in to comment.