From 2bf54498aafc19625bdb78828ec5b91483d7de38 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Mon, 1 Aug 2016 16:52:13 -0500 Subject: [PATCH] Point users at pylibmc rather than the Py3-broken python-memcache --- local_settings.py.example | 8 +++++++- requirements.txt | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/local_settings.py.example b/local_settings.py.example index 00aac329..db1a7d79 100644 --- a/local_settings.py.example +++ b/local_settings.py.example @@ -31,9 +31,15 @@ RELATE_BASE_URL = "http://YOUR/RELATE/SITE/DOMAIN" # properly if you enable this. (or a similar out-of-process cache # backend) # +# You must 'pip install pylibmc' to use this (which in turn may require +# installing 'libmemcached-dev'). +# +# Btw, do not be tempted to use 'MemcachedCache'--it's unmaintained and +# broken in Python 33, as of 2016-08-01. +# # CACHES = { # 'default': { -# 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', +# 'BACKEND': 'django.core.cache.backends.memcached.PyLibMCCache', # 'LOCATION': '127.0.0.1:11211', # } # } diff --git a/requirements.txt b/requirements.txt index c06fef09..97a25d44 100644 --- a/requirements.txt +++ b/requirements.txt @@ -51,8 +51,8 @@ django-bower git+https://github.com/lambdalisue/django-codemirror-widget.git #django-codemirror-widget -# Optional, used for caching -python-memcached +# Optional, used for caching, requires 'libmemcached-dev' (Debian package name) +# pylibmc # For code isolation in code questions docker-py -- GitLab