Browse Source

Removido suporte ao django-maintenancemode.

0.2
Guilherme Gondim 15 years ago
parent
commit
c992862f7b
  1. 1
      sigi/local_settings.template
  2. 9
      sigi/middleware.py
  3. 2
      sigi/settings.py

1
sigi/local_settings.template

@ -19,7 +19,6 @@
#DEBUG = False #DEBUG = False
#TEMPLATE_DEBUG = DEBUG #TEMPLATE_DEBUG = DEBUG
#MAINTENANCE_MODE = False
#ADMINS = (('root', 'root@localhost'),) #ADMINS = (('root', 'root@localhost'),)
#MANAGERS = ADMINS #MANAGERS = ADMINS

9
sigi/middleware.py

@ -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

2
sigi/settings.py

@ -14,7 +14,6 @@ PROJECT_DIR = BASE_DIR + '/sigi'
DEBUG = True DEBUG = True
TEMPLATE_DEBUG = DEBUG TEMPLATE_DEBUG = DEBUG
MAINTENANCE_MODE = False
# I can't determine this, use local_settings.py. # I can't determine this, use local_settings.py.
ADMINS = (('root', 'root@localhost'),) ADMINS = (('root', 'root@localhost'),)
@ -65,7 +64,6 @@ MIDDLEWARE_CLASSES = (
'django.middleware.gzip.GZipMiddleware', 'django.middleware.gzip.GZipMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware',
'sigi.middleware.MaintenanceModeMiddleware',
'django.middleware.cache.CacheMiddleware', 'django.middleware.cache.CacheMiddleware',
'django.middleware.common.CommonMiddleware', 'django.middleware.common.CommonMiddleware',
'django.middleware.doc.XViewMiddleware', 'django.middleware.doc.XViewMiddleware',

Loading…
Cancel
Save