'django.core.context_processors.request',
)
-MIDDLEWARE_CLASSES = [
+MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.middleware.doc.XViewMiddleware',
+ 'debug_toolbar.middleware.DebugToolbarMiddleware',
'pagination.middleware.PaginationMiddleware',
-]
+)
+
+DEBUG_TOOLBAR_PANELS = (
+ 'debug_toolbar.panels.version.VersionDebugPanel',
+ 'debug_toolbar.panels.sql.SQLDebugPanel',
+ 'debug_toolbar.panels.timer.TimerDebugPanel',
+ 'debug_toolbar.panels.headers.HeaderDebugPanel',
+)
-# If DEBUG is enabled add query log to bottom of every template
-if DEBUG:
- MIDDLEWARE_CLASSES.append('middleware.ProfileMiddleware')
+INTERNAL_IPS = ('127.0.0.1', )
-ROOT_URLCONF = 'wolnelektury.urls'
+ROOT_URLCONF = 'urls'
TEMPLATE_DIRS = (
PROJECT_DIR + '/templates/'
'pagination',
'chunks',
'compress',
+ 'debug_toolbar',
'catalogue',
)