From bca3f53b6df670cd177b243ec937279e6273cfa5 Mon Sep 17 00:00:00 2001 From: Bouke Haarsma Date: Wed, 28 Aug 2013 13:25:42 +0200 Subject: [PATCH] Heroku caching only in production --- .../{{cookiecutter.repo_name}}/config/settings.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/settings.py b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/settings.py index a9be091c..1bfa9c84 100644 --- a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/settings.py +++ b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/settings.py @@ -287,6 +287,12 @@ else: EMAIL_USE_TLS = True SERVER_EMAIL = EMAIL_HOST_USER ########## END EMAIL + + ########## CACHING + from memcacheify import memcacheify + CACHES = memcacheify() + ########## END CACHING + ########## TEMPLATE CONFIGURATION # See: https://docs.djangoproject.com/en/dev/ref/settings/#template-context-processors @@ -357,11 +363,6 @@ LOGGING = { } ########## END LOGGING CONFIGURATION -########## CACHING -from memcacheify import memcacheify -CACHES = memcacheify() -########## END CACHING - ########## Your stuff: Below this line define 3rd party libary settings