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

View File

@@ -1,4 +1,5 @@
from .rest_framework import *
from .corsheaders import *
from .simple_jwt import *
from .drf_yasg import *
from .drf_yasg import *
from .redis import *

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'))],
},
},
}