Skip to content

Commit

Permalink
feat: db conn timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
OrenZhang committed Jul 6, 2024
1 parent 30b0751 commit e9586c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .cruft.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"template": "https://github.com/OVINC-CN/DevTemplateDjango.git",
"commit": "985721fafdb113da04bee7519d87803ec4e62252",
"commit": "6957e612ab3e625ffd602eeed7ddfa462ac2f296",
"checkout": "main",
"context": {
"cookiecutter": {
Expand Down
1 change: 1 addition & 0 deletions entry/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
"PASSWORD": getenv_or_raise("DB_PASSWORD"),
"HOST": getenv_or_raise("DB_HOST"),
"PORT": int(getenv_or_raise("DB_PORT")),
"CONN_MAX_AGE": int(os.getenv("DB_CONN_MAX_AGE", str(60 * 60))),
"OPTIONS": {"charset": "utf8mb4"},
}
}
Expand Down

0 comments on commit e9586c3

Please sign in to comment.