Monday, November 23, 2009

Setup memcached cache backend in Django in Ubuntu 9

In order to run them together we have to:
  1. Install necessary packages

    sudo apt-get install build-essential python-dev memcached libmemcache-dev python-dev
    

  2. Install cmemcache (using easy_install)

    easy_install http://gijsbert.org/downloads/cmemcache/cmemcache-0.95.tar.bz2

  3. And, optionally and for test only, run memcached

    memcached -d -m 1024 -i 0.0.0.0 11211

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.