websoket qoshildi
This commit is contained in:
@@ -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
10
config/conf/redis.py
Normal 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'))],
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user