settings: remove automagic "debug_toolbar" activation

developers and testers should use config.py
This commit is contained in:
Thomas NOËL 2014-10-22 17:10:04 +02:00
parent 7c4557a623
commit e45352db27
2 changed files with 0 additions and 32 deletions

View File

@ -12,19 +12,3 @@ if 'DJANGO_CONFIG_FILE' in os.environ:
if 'DATABASES' not in globals():
logging.getLogger('passerelle').error('Unable to boot: You must define a DATABASES in your settings')
raise ImproperlyConfigured('You must define a DATABASES variable in your settings')
if DEBUG:
# Load debug toolbar when available
try:
import debug_toolbar
except:
pass
else:
logging.getLogger('passerelle').debug('loading debug_toolbar')
MIDDLEWARE_CLASSES += (
'debug_toolbar.middleware.DebugToolbarMiddleware',
)
INSTALLED_APPS += (
'debug_toolbar',
)

View File

@ -48,19 +48,3 @@ if 'DATABASES' not in globals():
if DATABASES['default']['ENGINE'] != 'django.db.backends.postgresql_psycopg2':
raise ImproperlyConfigured('MULTITENANT only work with a postgresql database')
DATABASES['default']['ENGINE'] = 'tenant_schemas.postgresql_backend'
if DEBUG:
# Load debug toolbar when available
try:
import debug_toolbar
except:
pass
else:
logging.getLogger('passerelle').debug('loading debug_toolbar')
MIDDLEWARE_CLASSES += (
'debug_toolbar.middleware.DebugToolbarMiddleware',
)
INSTALLED_APPS += (
'debug_toolbar',
)