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',