settings: remove automagic "debug_toolbar" activation
developers and testers should use config.py
This commit is contained in:
parent
7c4557a623
commit
e45352db27
|
@ -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',
|
||||
)
|
||||
|
|
|
@ -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',
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue