Update settings.py
This commit is contained in:
parent
e4dc8fdffe
commit
c7888570fd
@ -139,16 +139,18 @@ DEFAULT_FROM_EMAIL = os.environ.get("DEFAULT_FROM_EMAIL")
|
|||||||
|
|
||||||
# Realtime
|
# Realtime
|
||||||
ASGI_APPLICATION = "asgi.application"
|
ASGI_APPLICATION = "asgi.application"
|
||||||
|
|
||||||
CHANNEL_LAYERS = {
|
CHANNEL_LAYERS = {
|
||||||
"default": {
|
"default": {
|
||||||
"BACKEND": "channels_redis.core.RedisChannelLayer",
|
"BACKEND": "channels_redis.core.RedisChannelLayer",
|
||||||
"CONFIG": {
|
"CONFIG": {
|
||||||
"hosts": [(os.environ.get("REDIS_HOST"), os.environ.get("REDIS_PORT"))],
|
"hosts": [os.environ.get("REDIS_URI")],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Default primary key field type
|
# Default primary key field type
|
||||||
# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field
|
# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user