diff --git a/core/views.py b/core/views.py index 205e83c5..022f0fe8 100644 --- a/core/views.py +++ b/core/views.py @@ -37,7 +37,7 @@ def stream_view(request, stream_id): """ try: redis_host = getattr(settings, "REDIS_HOST", "localhost") - redis_client = redis.Redis(host=settings.REDIS_HOST, port=6379, db=getattr(settings, "REDIS_DB", "0")) + redis_client = redis.Redis(host=settings.REDIS_HOST, port=6379, db=int(getattr(settings, "REDIS_DB", "0"))) # Retrieve the channel by the provided stream_id. channel = Channel.objects.get(channel_number=stream_id)