Skip to content

Commit caeeb41

Browse files
committed
forgot to save
1 parent 67596ff commit caeeb41

File tree

1 file changed

+8
-2
lines changed
  • python/{{cookiecutter.project_slug}}/src/{{cookiecutter.project_slug}}

1 file changed

+8
-2
lines changed

python/{{cookiecutter.project_slug}}/src/{{cookiecutter.project_slug}}/config.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88

99

1010
class Settings(BaseSettings):
11-
"""Create app settings"""
11+
"""Create app settings
12+
13+
There's no singleton effect here, so every new call to this class will re-compute
14+
configuration settings, defaults, etc.
15+
"""
1216

1317
model_config = SettingsConfigDict(
1418
env_prefix="{{ cookiecutter.project_slug }}_",
@@ -24,7 +28,9 @@ class Settings(BaseSettings):
2428

2529
@cache
2630
def get_config() -> Settings:
27-
"""Get runtime configuration
31+
"""Get runtime configuration.
32+
33+
This function is cached, so the config object only gets created/calculated once.
2834
2935
:return: Settings instance
3036
"""

0 commit comments

Comments
 (0)