Update settings.py

This commit is contained in:
Andros Fenollosa 2022-08-09 09:30:47 +00:00
parent e4dc8fdffe
commit c7888570fd

View File

@ -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