From 430728cb260985786bb5dd594843a2962270b22d Mon Sep 17 00:00:00 2001 From: raylu Date: Mon, 16 May 2011 01:22:19 -0400 Subject: Cache labs --- pyc/settings.py | 7 +++++++ pyc/templates/base.html | 3 +++ 2 files changed, 10 insertions(+) diff --git a/pyc/settings.py b/pyc/settings.py index 5a903e7..4cef68b 100644 --- a/pyc/settings.py +++ b/pyc/settings.py @@ -157,3 +157,10 @@ LOGGING = { }, } } + +CACHES = { + 'default': { + 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache', + 'TIMEOUT': 60, + } + } diff --git a/pyc/templates/base.html b/pyc/templates/base.html index 00dac18..370f8d7 100644 --- a/pyc/templates/base.html +++ b/pyc/templates/base.html @@ -11,6 +11,8 @@ {% block body %}{% endblock %}