diff --git a/api/settings.py b/api/settings.py index 79fd0bf..c1042dd 100644 --- a/api/settings.py +++ b/api/settings.py @@ -131,14 +131,14 @@ else: CACHES = PROD_CACHES # WebSocket 的缓存 - # CHANNEL_LAYERS = { - # "default": { - # "BACKEND": "channels_redis.core.RedisChannelLayer", - # "CONFIG": { - # "hosts": [(os.getenv("REDIS_HOST"), 6379)], - # }, - # }, - # } + CHANNEL_LAYERS = { + "default": { + "BACKEND": "channels_redis.core.RedisChannelLayer", + "CONFIG": { + "hosts": [(os.getenv("REDIS_HOST"), 6379)], + }, + }, + } # Password validation # https://docs.djangoproject.com/en/5.1/ref/settings/#auth-password-validators