Hi, I am configuring the memcache backend to use with django and have the following things setup:
CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': '127.0.0.1:11211', } } CACHE_MIDDLEWARE_ALIAS = 'django.core.cache.backends.memcached.MemcachedCache' CACHE_MIDDLEWARE_SECONDS = 3 * 60 * 60 # 3 hours in seconds CACHE_MIDDLEWARE_KEY_PREFIX = '' MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.doc.XViewMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.cache.UpdateCacheMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.cache.FetchFromCacheMiddleware', # the order of our middleware matters! # should be later than AuthenticationMiddleware, # but earlier than HorizonMiddleware 'horizon.middleware.HorizonMiddleware', ) I keep hitting the error message "Unable to parse connection string: "" which is coming from the memcache.py from the python-memcached binding. This is because the tuple of cache servers is empty instead of containing 127.0.0.1:11211. I have verified that the memcache daemon is up and running and have added and retrieved data from it. Hence, I believe that there is something wrong with my configuration and I have been trying to figure out what is wrong for hours. I hope someone can lend some assistance. Many thanks, nav P.S. This is the first time I am setting up a cache so I may need some explanation of some concepts. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2131332e-33cf-4d73-a9b7-2107bf07b2c4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.