Switch from django-redis-cache to django-redis, which does the same thing but is actively maintained

This commit is contained in:
Danielle McLean 2018-04-24 12:45:05 +10:00
parent 9d30534d1d
commit 0f95cfa0bc
Signed by: 00dani
GPG key ID: 8EB789DDF3ABD240
3 changed files with 8 additions and 8 deletions

View file

@ -14,7 +14,6 @@ gunicorn = {extras = ["gevent"]}
pillow = "*" pillow = "*"
python-memcached = "*" python-memcached = "*"
django-meta = "*" django-meta = "*"
django-redis-cache = "*"
django-activeurl = "*" django-activeurl = "*"
django-otp = "*" django-otp = "*"
qrcode = "*" qrcode = "*"
@ -44,5 +43,6 @@ python-baseconv = "*"
django-computed-property = "*" django-computed-property = "*"
docutils = "*" docutils = "*"
django-super-favicon = "*" django-super-favicon = "*"
django-redis = "*"
[dev-packages] [dev-packages]

9
Pipfile.lock generated
View file

@ -1,7 +1,7 @@
{ {
"_meta": { "_meta": {
"hash": { "hash": {
"sha256": "ae4dade055d59d05a11fdc8152e44a28786647649dc1f9e14049218ccefa5709" "sha256": "20d851bba1969d8787dfc9967508f3c9cb6dde62a1dd18baf57a7c85efbfd2f4"
}, },
"pipfile-spec": 6, "pipfile-spec": 6,
"requires": { "requires": {
@ -259,12 +259,13 @@
"index": "pypi", "index": "pypi",
"version": "==1.0" "version": "==1.0"
}, },
"django-redis-cache": { "django-redis": {
"hashes": [ "hashes": [
"sha256:2b4e3510bbcaf3d331975717afd6f15a36fbaf7622504599d2727dc99f90c64d" "sha256:15b47faef6aefaa3f47135a2aeb67372da300e4a4cf06809c66ab392686a2155",
"sha256:a90343c33a816073b735f0bed878eaeec4f83b75fcc0dce2432189b8ea130424"
], ],
"index": "pypi", "index": "pypi",
"version": "==1.7.1" "version": "==4.9.0"
}, },
"django-rq": { "django-rq": {
"hashes": [ "hashes": [

View file

@ -138,11 +138,10 @@ WSGI_APPLICATION = 'lemoncurry.wsgi.application'
CACHES = { CACHES = {
'default': { 'default': {
'BACKEND': 'redis_cache.RedisCache', 'BACKEND': 'django_redis.cache.RedisCache',
'LOCATION': '127.0.0.1:6380', 'LOCATION': 'redis://127.0.0.1:6380/0',
'KEY_PREFIX': 'lemoncurry', 'KEY_PREFIX': 'lemoncurry',
'OPTIONS': { 'OPTIONS': {
'DB': 0,
'PARSER_CLASS': 'redis.connection.HiredisParser', 'PARSER_CLASS': 'redis.connection.HiredisParser',
}, },
} }