On Tue, 2007-05-29 at 16:54 +1000, Malcolm Tredinnick wrote: > On Tue, 2007-05-29 at 06:49 +0000, omat wrote: > > Hi all, > > > > I have installed memcached and python bindings on Fedora Core 4.
My sincere apologies. I completely misread this line. You *have* installed the pre-reqs (in theory). My bad. :-( > Using > > the python shell I am able to use cache with django: > > > > >>> from django.conf import settings > > >>> settings.configure(CACHE_BACKEND = 'memcached://127.0.0.1:11211/') > > >>> from django.core.cache import cache > > >>> cache.set('test', 'abc') > > >>> cache.get('test') > > 'abc' > > > > But when I put CACHE_BACKEND = 'memcached://127.0.0.1:11211/' in the > > settings.py I get: > > > > InvalidCacheBackendError: Memcached cache backend requires either > > 'memcached' or 'cmemcached' libraries Did you install python-memcached from an rpm? Or manually? If you installed it from an rpm, can you import the memcached Python bindings from the prompt? That would be the first test. All Django tries to do is "import memcache" (well, it tries "import cmemcache" first and if that fails, falls back to memcache). Work out why it is failing without Django getting in the way and then move up to trying to involve Django. Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---