32 lines
1.2 KiB
Python
32 lines
1.2 KiB
Python
"""
|
|
This configuration is to turn on the Django Toolbar stats for DB access stats, for performance analysis
|
|
"""
|
|
|
|
# We intentionally define lots of variables that aren't used, and
|
|
# want to import all variables from base settings files
|
|
# pylint: disable=W0401, W0614
|
|
|
|
from .dev import *
|
|
|
|
DEBUG_TOOLBAR_PANELS = (
|
|
'debug_toolbar.panels.versions.VersionsPanel',
|
|
'debug_toolbar.panels.timer.TimerPanel',
|
|
'debug_toolbar.panels.settings.SettingsPanel',
|
|
'debug_toolbar.panels.headers.HeadersPanel',
|
|
'debug_toolbar.panels.request.RequestPanel',
|
|
'debug_toolbar.panels.sql.SQLPanel',
|
|
'debug_toolbar.panels.signals.SignalsPanel',
|
|
'debug_toolbar.panels.logging.LoggingPanel',
|
|
'debug_toolbar_mongo.panel.MongoDebugPanel',
|
|
|
|
# Enabling the profiler has a weird bug as of django-debug-toolbar==0.9.4 and
|
|
# Django=1.3.1/1.4 where requests to views get duplicated (your method gets
|
|
# hit twice). So you can uncomment when you need to diagnose performance
|
|
# problems, but you shouldn't leave it on.
|
|
# 'debug_toolbar.panels.profiling.ProfilingPanel',
|
|
)
|
|
|
|
# To see stacktraces for MongoDB queries, set this to True.
|
|
# Stacktraces slow down page loads drastically (for pages with lots of queries).
|
|
DEBUG_TOOLBAR_MONGO_STACKTRACES = True
|