From c992862f7b8c92ab4aca8ecdf55c8aaf320108f0 Mon Sep 17 00:00:00 2001 From: Guilherme Gondim Date: Fri, 18 Dec 2009 13:08:50 +0000 Subject: [PATCH] Removido suporte ao django-maintenancemode. --- sigi/local_settings.template | 1 - sigi/middleware.py | 9 --------- sigi/settings.py | 2 -- 3 files changed, 12 deletions(-) delete mode 100644 sigi/middleware.py diff --git a/sigi/local_settings.template b/sigi/local_settings.template index f601a0b..c9bdc98 100644 --- a/sigi/local_settings.template +++ b/sigi/local_settings.template @@ -19,7 +19,6 @@ #DEBUG = False #TEMPLATE_DEBUG = DEBUG -#MAINTENANCE_MODE = False #ADMINS = (('root', 'root@localhost'),) #MANAGERS = ADMINS diff --git a/sigi/middleware.py b/sigi/middleware.py deleted file mode 100644 index f736951..0000000 --- a/sigi/middleware.py +++ /dev/null @@ -1,9 +0,0 @@ -try: - # try use maintenancemode middleware from django-maintenancemode project - import maintenancemode.middleware - class MaintenanceModeMiddleware(maintenancemode.middleware.MaintenanceModeMiddleware): - pass -except ImportError: - # otherwise, a thin wrapper for middleware - class MaintenanceModeMiddleware(object): - pass diff --git a/sigi/settings.py b/sigi/settings.py index 5fe0766..c893b40 100644 --- a/sigi/settings.py +++ b/sigi/settings.py @@ -14,7 +14,6 @@ PROJECT_DIR = BASE_DIR + '/sigi' DEBUG = True TEMPLATE_DEBUG = DEBUG -MAINTENANCE_MODE = False # I can't determine this, use local_settings.py. ADMINS = (('root', 'root@localhost'),) @@ -65,7 +64,6 @@ MIDDLEWARE_CLASSES = ( 'django.middleware.gzip.GZipMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', - 'sigi.middleware.MaintenanceModeMiddleware', 'django.middleware.cache.CacheMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.doc.XViewMiddleware',