Could it possibly be due to the fact that your python shell has the 
correct PYTHONPATH set (with the memcached python bindings) and that 
your django configuration doesn't have the correct PYTHONPATH?

omat wrote:
> Hi all,
>
> I have installed memcached and python bindings on Fedora Core 4. 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
>
>
> Any ideas?
>
> oMat
>
>
> >
>   


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to