Ask Your Question
0

Update memcached link in settings.py

asked 2013-12-08 12:04:56 -0500

JStarcher gravatar image

I noticed that in settings.py there is a link to very old Django 1.1 docs: docs DOT djangoproject DOT com/en/1.1/topics/cache/

In those docs the recommended python bindings module is cmemcache, which has been retired since 2009 and no longer recommended.

It would be a good idea to upgrade that to 1.5 to keep people from getting confused.

edit retag flag offensive close merge delete

Comments

EDIT: Actually, the settings.py example is completely incorrect anyway on newer versions of Django. You'll need to configure it like this in newer versions: CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': '127.0.0.1:11211', } }

JStarcher gravatar imageJStarcher ( 2013-12-08 12:29:13 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-12-08 12:40:59 -0500

Evgeny gravatar image

Yes it's outdated - try pymemcache, it's a pure python implementation and may be easier to work with. It's slower, but you probably won't notice that. Also you might use redis cache.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-12-08 12:04:56 -0500

Seen: 133 times

Last updated: Dec 08 '13