aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2013-08-11 14:02:23 +0200
committerMichał Górny <mgorny@gentoo.org>2013-08-11 22:43:30 +0200
commit0b946cc0414987b87fbe25915fecea762adca99b (patch)
treea63742da87799cabdd33ef9fc47007b666403305 /okupy/settings
parentMerge pull request #53 from tampakrap/settings (diff)
downloadidentity.gentoo.org-0b946cc0414987b87fbe25915fecea762adca99b.tar.gz
identity.gentoo.org-0b946cc0414987b87fbe25915fecea762adca99b.tar.bz2
identity.gentoo.org-0b946cc0414987b87fbe25915fecea762adca99b.zip
Enable memcached cache backend.
Diffstat (limited to 'okupy/settings')
-rw-r--r--okupy/settings/local.py.sample8
1 files changed, 8 insertions, 0 deletions
diff --git a/okupy/settings/local.py.sample b/okupy/settings/local.py.sample
index 454906c..245d48a 100644
--- a/okupy/settings/local.py.sample
+++ b/okupy/settings/local.py.sample
@@ -19,6 +19,14 @@ DEVELOPMENT = True
# Examples: okupy, okupy-dev, identity.gentoo.org
INSTANCE_NAME = 'okupy-dev'
+CACHES = {
+ 'default': {
+ 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
+ # replace with the path to your memcached socket
+ 'LOCATION': 'unix://home/$USER/okupy/memcached.sock',
+ }
+}
+
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.