Skip to content
This repository has been archived by the owner on Oct 8, 2019. It is now read-only.

Commit

Permalink
Added support for pylibmc
Browse files Browse the repository at this point in the history
  • Loading branch information
jarshwah committed Sep 19, 2016
1 parent e0d759c commit 317af9e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
1.11.2 - September 20, 2016
===========================

- Added support for pylibmc by building against a newer django commit,
and installing pylibmc dependencies.

1.11.1 - September 19, 2016
===========================

Expand Down
1 change: 1 addition & 0 deletions roles/python/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
- libjpeg-dev # for Pillow
- zlib1g-dev # for Pillow
- git # Tox executes git config
- libmemcached-dev # for pylibmc

- name: install tox for running build tasks
pip: name=tox executable=pip3
Expand Down

1 comment on commit 317af9e

@timgraham
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also add this to settings.CACHES:

'pylibmc': {
    'BACKEND': 'django.core.cache.backends.memcached.PyLibMCCache',
    'LOCATION': '127.0.0.1:11211',
}

and if it's important to support older versions of Django:

if django.VERSION < (1, 10):
    del CACHES['pylibmc']

Please sign in to comment.