Sweet, thanks!
Do you know how to use the cmemcache library instead of the python-
memcached library to do what effbot did? Because I'm pretty sure you
can't have both modules, because the Django documentation says to pick
ONE. And since they emphasized it, I think they mean it. Also it seems
that cmemcache is better. Also, when you set the CACHE_BACKEND in your
settings.py, should you set it to the same ip as you ran your
memcached under (with the -l option)? And should that ip you specify
in memcached with the -l option be your server's actual ip, or the
127.0.0.1 ip?
I've done it using my server's ip in both cases, and I tried using
Django's low level API:
if cache.get('temp', 'not_here') == 'not_here':
cache.set('temp', 'hello world')
return HttpResponse('cache failed to load')
else:
return HttpResponse('cache loaded fine: '+str(cache.get('temp')))
and nothing ever gets cached. And the "from django.core.cache import
cache" works just fine.
On Jan 18, 5:28 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> > Is python-memcached the same as the memcache he is trying to import in
> > his memcached_status.py?
>
> Yes.
>
> By the way, I just figured out why it's not working: your urls.py file
> has a small typo. It's pointing to "memcached.memcached_status",
> however the function that you defined is called cache_status. You
> should change it to read "memcached.cache_status" and all should work
> fine.
>
> Thanks,
> Eric Florenzano
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---