comparison bns_website/settings/local.py @ 15:6b664ec90f2f

Merged Brian's changes with mine.
author Bob Mourlam <bob.mourlam@gmail.com>
date Sun, 30 Oct 2011 21:37:52 -0500
parents d5f3bb516fd3
children
comparison
equal deleted inserted replaced
14:2de51cc51d3a 15:6b664ec90f2f
60 'root': { 60 'root': {
61 'level': 'DEBUG', 61 'level': 'DEBUG',
62 'handlers': ['file'], 62 'handlers': ['file'],
63 }, 63 },
64 } 64 }
65
66 # Django Debug Toolbar support
67 if DEBUG:
68 try:
69 import debug_toolbar
70 except ImportError:
71 pass
72 else:
73 i = MIDDLEWARE_CLASSES.index('django.middleware.common.CommonMiddleware')
74 MIDDLEWARE_CLASSES.insert(i + 1,
75 'debug_toolbar.middleware.DebugToolbarMiddleware')
76 INTERNAL_IPS = ['127.0.0.1']
77 INSTALLED_APPS.append('debug_toolbar')