Dark模式 oss存储
Deploy dev / deploy (push) Successful in 1m16s

This commit is contained in:
Azmat@qq.com
2026-09-24 18:06:00 +08:00
parent ceb5163881
commit 5dbb240b59
46 changed files with 3491 additions and 350 deletions
@@ -3,5 +3,16 @@ from .base import * # noqa: F403
DEBUG = True
# 本机 runserver 不在 K8s 的 service DNS 中;若直接沿用集群 Redis 地址,任何依赖
# cache.get/cache.add 的普通读取接口都会变成 500。开发环境默认使用进程内缓存,确需
# 联调分布式锁或 Celery 时再显式设 AIRSHELF_DEV_USE_REDIS_CACHE=true。
if not env_bool("AIRSHELF_DEV_USE_REDIS_CACHE", False): # noqa: F405
CACHES = {
"default": {
"BACKEND": "django.core.cache.backends.locmem.LocMemCache",
"LOCATION": "airshelf-development-cache",
}
}
# MySQL 连接复用(CONN_MAX_AGE / 健康检查 / connect_timeout)已上移到 base.py,
# development 与 production 共用,此处不再重复设置。