summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreliott <eliott@cactuswax.net>2008-01-06 02:08:07 +0100
committereliott <eliott@cactuswax.net>2008-01-06 02:08:07 +0100
commit4aee4dd236eace068ea3bf7e9d8e24e5268bb491 (patch)
tree22c40cb07d7f1e932a91680089911e0db49ba94b
parentea8a7cb4e3a9efd86773e1ea3c4155901fe0fdb1 (diff)
downloadarchweb-4aee4dd236eace068ea3bf7e9d8e24e5268bb491.tar.gz
archweb-4aee4dd236eace068ea3bf7e9d8e24e5268bb491.tar.xz
subtle changes to settings files
moved cache controls to local_settings
-rw-r--r--local_settings.py.example7
-rw-r--r--settings.py7
2 files changed, 4 insertions, 10 deletions
diff --git a/local_settings.py.example b/local_settings.py.example
index 031e3b6..965e07b 100644
--- a/local_settings.py.example
+++ b/local_settings.py.example
@@ -20,11 +20,12 @@ ADMINS = (
#DATABASE_HOST = ''
#DATABASE_PORT = ''
-## Enable/disable caching
+## Define cache middleware settings
CACHE = False
-
-## Define a cache backend
CACHE_BACKEND = 'file:///tmp/ALdjangocache?timeout=900'
+CACHE_MIDDLEWARE_SECONDS = 900
+CACHE_MIDDLEWARE_KEY_PREFIX = 'arch'
+CACHE_MIDDLEWARE_ANONYMOUS_ONLY = True
## location for saving dev pictures
MEDIA_ROOT = '/var/www/archlinux/htdocs/img/devs/'
diff --git a/settings.py b/settings.py
index 84c77fe..18624ad 100644
--- a/settings.py
+++ b/settings.py
@@ -10,13 +10,6 @@ TEMPLATE_DEBUG = DEBUG
# Set managers to admins
MANAGERS = ADMINS
-## Cache backend settings
-if CACHE == True:
- CACHE_BACKEND = 'file:///tmp/ALdjangocache?timeout=900'
- CACHE_MIDDLEWARE_SECONDS = 900
- CACHE_MIDDLEWARE_KEY_PREFIX = 'arch'
- CACHE_MIDDLEWARE_ANONYMOUS_ONLY = True
-
# Full path to the data directory
DEPLOY_PATH = os.path.dirname(os.path.realpath(__file__))
DATA_DIR = '%s/data' % DEPLOY_PATH