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 共用,此处不再重复设置。