websoket qoshildi

This commit is contained in:
behruz-dev
2025-11-28 17:51:00 +05:00
parent b14062e7b9
commit aa38215428
9 changed files with 215 additions and 6 deletions

10
config/conf/redis.py Normal file
View File

@@ -0,0 +1,10 @@
from config.env import env
CHANNEL_LAYERS = {
'default': {
'BACKEND': 'channels_redis.core.RedisChannelLayer',
'CONFIG': {
"hosts": [(env.str('REDIS_HOST'), env.str('REDIS_PORT'))],
},
},
}