We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67596ff commit caeeb41Copy full SHA for caeeb41
python/{{cookiecutter.project_slug}}/src/{{cookiecutter.project_slug}}/config.py
@@ -8,7 +8,11 @@
8
9
10
class Settings(BaseSettings):
11
- """Create app settings"""
+ """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
+ """
16
17
model_config = SettingsConfigDict(
18
env_prefix="{{ cookiecutter.project_slug }}_",
@@ -24,7 +28,9 @@ class Settings(BaseSettings):
24
28
25
29
@cache
26
30
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.
34
35
:return: Settings instance
36
"""
0 commit comments