add memcached as cache backend

This commit is contained in:
Frédéric Péters 2016-05-30 19:01:41 +02:00
parent 55a25b3bbd
commit 1a6278df0e
2 changed files with 9 additions and 1 deletions

3
debian/control vendored
View File

@ -19,6 +19,7 @@ Architecture: all
Depends: ${misc:Depends},
python-scrutiny (= ${binary:Version}),
python-psycopg2,
gunicorn
gunicorn,
memcached
Recommends: nginx, postgresql
Description: Tracker of installed modules

7
debian/settings.py vendored
View File

@ -53,3 +53,10 @@ TIME_ZONE = 'Europe/Paris'
# HTTPS Security
# CSRF_COOKIE_SECURE = True
# SESSION_COOKIE_SECURE = True
CACHES = {
'default': {
'_BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': '127.0.0.1:11211',
}
}