summaryrefslogtreecommitdiffstats
path: root/core/config.py
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-16 17:23:46 -0700
committerAndrew Godwin2022-11-16 17:23:46 -0700
commit44af0d4c59eed1c3715e9044e75c159cfddf54cc (patch)
treed2c87f953de12a526a158f2c03def5eb08b2d203 /core/config.py
parent495e955378d62dc439c4c210785e5d401bc77f64 (diff)
downloadtakahe-44af0d4c59eed1c3715e9044e75c159cfddf54cc.tar.gz
takahe-44af0d4c59eed1c3715e9044e75c159cfddf54cc.tar.bz2
takahe-44af0d4c59eed1c3715e9044e75c159cfddf54cc.zip
Add start of a settings (config) system
Diffstat (limited to 'core/config.py')
-rw-r--r--core/config.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/core/config.py b/core/config.py
deleted file mode 100644
index b9f6878..0000000
--- a/core/config.py
+++ /dev/null
@@ -1,20 +0,0 @@
-import pydantic
-
-
-class Config(pydantic.BaseModel):
-
- # Basic configuration options
- site_name: str = "takahē"
- identity_max_age: int = 24 * 60 * 60
-
- # Cached ORM object storage
- __singleton__ = None
-
- class Config:
- env_prefix = "takahe_"
-
- @classmethod
- def load(cls) -> "Config":
- if cls.__singleton__ is None:
- cls.__singleton__ = cls()
- return cls.__singleton__