Skip to content

Conversation

@vincentsarago
Copy link
Member

No description provided.

@vincentsarago vincentsarago requested a review from hrodmn March 4, 2025 16:52
)
templates = Jinja2Templates(env=jinja2_env)

postgres_settings = PostgresSettings()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The settings will be initialized later in the lifespan so there is no real need to do this.

Now instead of failing on import it will fail during the startup event (if no env are found)

@vincentsarago vincentsarago merged commit 19f2bf1 into main Mar 4, 2025
8 checks passed
@vincentsarago vincentsarago deleted the patch/do-not-init-useless-settings branch March 4, 2025 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants