diff --git a/Pipfile b/Pipfile index 8718bd4..cd0cdfa 100644 --- a/Pipfile +++ b/Pipfile @@ -14,7 +14,6 @@ gunicorn = {extras = ["gevent"]} pillow = "*" python-memcached = "*" django-meta = "*" -django-redis-cache = "*" django-activeurl = "*" django-otp = "*" qrcode = "*" @@ -44,5 +43,6 @@ python-baseconv = "*" django-computed-property = "*" docutils = "*" django-super-favicon = "*" +django-redis = "*" [dev-packages] diff --git a/Pipfile.lock b/Pipfile.lock index 3c7d532..54ddb8a 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "ae4dade055d59d05a11fdc8152e44a28786647649dc1f9e14049218ccefa5709" + "sha256": "20d851bba1969d8787dfc9967508f3c9cb6dde62a1dd18baf57a7c85efbfd2f4" }, "pipfile-spec": 6, "requires": { @@ -259,12 +259,13 @@ "index": "pypi", "version": "==1.0" }, - "django-redis-cache": { + "django-redis": { "hashes": [ - "sha256:2b4e3510bbcaf3d331975717afd6f15a36fbaf7622504599d2727dc99f90c64d" + "sha256:15b47faef6aefaa3f47135a2aeb67372da300e4a4cf06809c66ab392686a2155", + "sha256:a90343c33a816073b735f0bed878eaeec4f83b75fcc0dce2432189b8ea130424" ], "index": "pypi", - "version": "==1.7.1" + "version": "==4.9.0" }, "django-rq": { "hashes": [ diff --git a/lemoncurry/settings/base.py b/lemoncurry/settings/base.py index e68d1b2..7d38b69 100644 --- a/lemoncurry/settings/base.py +++ b/lemoncurry/settings/base.py @@ -138,11 +138,10 @@ WSGI_APPLICATION = 'lemoncurry.wsgi.application' CACHES = { 'default': { - 'BACKEND': 'redis_cache.RedisCache', - 'LOCATION': '127.0.0.1:6380', + 'BACKEND': 'django_redis.cache.RedisCache', + 'LOCATION': 'redis://127.0.0.1:6380/0', 'KEY_PREFIX': 'lemoncurry', 'OPTIONS': { - 'DB': 0, 'PARSER_CLASS': 'redis.connection.HiredisParser', }, }