From c7888570fd082c63fe23b0c2e8d7bc434fb75904 Mon Sep 17 00:00:00 2001 From: Andros Fenollosa Date: Tue, 9 Aug 2022 09:30:47 +0000 Subject: [PATCH] Update settings.py --- core/settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/settings.py b/core/settings.py index 9e19490..7d10a55 100644 --- a/core/settings.py +++ b/core/settings.py @@ -139,16 +139,18 @@ DEFAULT_FROM_EMAIL = os.environ.get("DEFAULT_FROM_EMAIL") # Realtime ASGI_APPLICATION = "asgi.application" + CHANNEL_LAYERS = { "default": { "BACKEND": "channels_redis.core.RedisChannelLayer", "CONFIG": { - "hosts": [(os.environ.get("REDIS_HOST"), os.environ.get("REDIS_PORT"))], + "hosts": [os.environ.get("REDIS_URI")], }, }, } + # Default primary key field type # https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field