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 fe7e76e commit 44b3733Copy full SHA for 44b3733
1 file changed
tilavarauspalvelu/settings.py
@@ -1,4 +1,5 @@
1
# ruff: noqa: N802
2
+import os
3
import zoneinfo
4
from pathlib import Path
5
@@ -135,8 +136,7 @@ def APP_VERSION(cls) -> str:
135
136
137
# --- Database settings ------------------------------------------------------------------------------------------
138
- CONN_MAX_AGE = values.IntegerValue(default=0)
139
- DATABASES = values.DatabaseURLValue(conn_max_age=CONN_MAX_AGE)
+ DATABASES = values.DatabaseURLValue(conn_max_age=int(os.getenv("CONN_MAX_AGE", "0")))
140
141
# --- Template settings ------------------------------------------------------------------------------------------
142
0 commit comments