From f22b6dcdf9559b65f1c395390879bdd6a55aa16f Mon Sep 17 00:00:00 2001 From: Guilherme Gondim Date: Tue, 26 Aug 2008 19:06:37 +0000 Subject: [PATCH] =?UTF-8?q?Passando=20a=20utilizar=20o=20pacote=20maintena?= =?UTF-8?q?ncemode=20para=20o=20modo=20de=20site=20em=20manuten=C3=A7?= =?UTF-8?q?=C3=A3o.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sigi/local_settings.template | 5 ++--- sigi/settings.py | 4 +++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/sigi/local_settings.template b/sigi/local_settings.template index 0a29d4e..3c730f9 100644 --- a/sigi/local_settings.template +++ b/sigi/local_settings.template @@ -12,7 +12,7 @@ #DEBUG = True #TEMPLATE_DEBUG = DEBUG - +#MAINTENANCE_MODE = False #################################### ## TEMPLATE FOR USE IN PRODUCTION ## @@ -20,8 +20,7 @@ #DEBUG = False #TEMPLATE_DEBUG = DEBUG -#MAINTENANCE = True - +#MAINTENANCE_MODE = False #ADMINS = (('root', 'root@localhost'),) #MANAGERS = ADMINS diff --git a/sigi/settings.py b/sigi/settings.py index 89074d6..ac4e0e1 100644 --- a/sigi/settings.py +++ b/sigi/settings.py @@ -14,7 +14,6 @@ PROJECT_DIR = BASE_DIR + '/sigi' DEBUG = True TEMPLATE_DEBUG = DEBUG -MAINTENANCE = False # I can't determine this, use local_settings.py. ADMINS = (('root', 'root@localhost'),) @@ -42,6 +41,8 @@ CACHE_MIDDLEWARE_SECONDS = 60 CACHE_MIDDLEWARE_KEY_PREFIX = 'sigi' CACHE_MIDDLEWARE_ANONYMOUS_ONLY = False +MAINTENANCE_MODE = False + # Used to provide a seed in secret-key hashing algorithms. Set this to # a random string in your local_settings.py - the longer, the better. SECRET_KEY = 'set-this-in-your-local_settings.py!' @@ -64,6 +65,7 @@ MIDDLEWARE_CLASSES = ( 'django.middleware.gzip.GZipMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'maintenancemode.middleware.MaintenanceModeMiddleware', 'django.middleware.cache.CacheMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.doc.XViewMiddleware',