diff --git a/mi_web/settings.py b/mi_web/settings.py index c8eea64..aba53a8 100644 --- a/mi_web/settings.py +++ b/mi_web/settings.py @@ -9,7 +9,7 @@ https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ - +import os from pathlib import Path # Build paths inside the project like this: BASE_DIR / 'subdir'. @@ -127,7 +127,7 @@ CHANNEL_LAYERS = { "default": { "BACKEND": "channels_redis.core.RedisChannelLayer", "CONFIG": { - "hosts": [("127.0.0.1", 6379)], + "hosts": [(os.environ.get("REDIS_URL", "127.0.0.1"), 6379)], }, }, }