src/jocondelab/config.py.tmpl
changeset 284 56db9b2c61e8
parent 275 7fb704ee75e7
child 286 a028fbaaba81
--- a/src/jocondelab/config.py.tmpl	Tue Jan 21 10:57:47 2014 +0100
+++ b/src/jocondelab/config.py.tmpl	Tue Jan 21 10:58:31 2014 +0100
@@ -81,6 +81,9 @@
 # Make this unique, and don't share it with anybody.
 SECRET_KEY = '%(secret_key)s'
 
+#use etags
+USE_ETAGS = False
+
 #LOG_FILE = os.path.abspath(os.path.join(BASE_DIR,"../../run/log/log.txt"))
 LOG_FILE = '%(log_file)s'
 LOG_LEVEL = logging.DEBUG
@@ -143,3 +146,11 @@
     }
 }
 
+CACHES = {
+    'default': {
+        'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
+        'LOCATION': 'unique-snowflake'
+    }
+}
+
+CACHE_MIDDLEWARE_SECONDS = 600