Coverage for config\settings\local.py: 83%

6 statements  

« prev     ^ index     » next       coverage.py v7.16.0, created at 2026-09-05 09:19 +0800

1from .base import * 

2 

3DEBUG = True 

4 

5USE_INMEMORY_CHANNELS = os.getenv('USE_INMEMORY_CHANNELS', 'True').lower() in {'1', 'true', 'yes', 'on'} 

6 

7if USE_INMEMORY_CHANNELS: 

8 CHANNEL_LAYERS = { 

9 'default': { 

10 'BACKEND': 'channels.layers.InMemoryChannelLayer', 

11 } 

12 } 

13else: 

14 CHANNEL_LAYERS = { 

15 'default': { 

16 'BACKEND': 'channels_redis.core.RedisChannelLayer', 

17 'CONFIG': {'hosts': [CHANNEL_LAYER_REDIS]}, 

18 } 

19 }