diff --git a/ChannelsDrawShareSite/__pycache__/settings.cpython-36.pyc b/ChannelsDrawShareSite/__pycache__/settings.cpython-36.pyc index 2b1d6fd..847175a 100644 Binary files a/ChannelsDrawShareSite/__pycache__/settings.cpython-36.pyc and b/ChannelsDrawShareSite/__pycache__/settings.cpython-36.pyc differ diff --git a/ChannelsDrawShareSite/settings.py b/ChannelsDrawShareSite/settings.py index 8938113..9f11d03 100644 --- a/ChannelsDrawShareSite/settings.py +++ b/ChannelsDrawShareSite/settings.py @@ -77,12 +77,18 @@ CHANNEL_LAYERS = { 'default': { 'BACKEND': 'channels_redis.core.RedisChannelLayer', 'CONFIG': { - # "hosts": [('127.0.0.1', 6379)], - "hosts": [os.environ.get('REDIS_URL', 'redis://localhost:6379')], + "hosts": [('127.0.0.1', 6379)], }, }, } +CACHES = { + "default": { + "BACKEND": "redis_cache.RedisCache", + "LOCATION": os.environ.get('REDIS_URL'), + } +} + # Database # https://docs.djangoproject.com/en/2.1/ref/settings/#databases diff --git a/drawshare/__pycache__/routing.cpython-36.pyc b/drawshare/__pycache__/routing.cpython-36.pyc index b8c9861..ac5b10c 100644 Binary files a/drawshare/__pycache__/routing.cpython-36.pyc and b/drawshare/__pycache__/routing.cpython-36.pyc differ diff --git a/drawshare/templates/drawshare/room.html b/drawshare/templates/drawshare/room.html index ad6e2b5..0753945 100644 --- a/drawshare/templates/drawshare/room.html +++ b/drawshare/templates/drawshare/room.html @@ -4,6 +4,7 @@