From cc8eaee3095cf44652db472dfa81b5d9528142b8 Mon Sep 17 00:00:00 2001 From: Rob Hudson Date: Sun, 7 Sep 2008 00:38:09 -0700 Subject: editing README --- README.rst | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index def75c7..63743bb 100644 --- a/README.rst +++ b/README.rst @@ -12,6 +12,7 @@ Currently, the following panels have been written and are working: - Django version - SQL queries including time to execute +- Request timer If you have ideas for other panels please let us know. @@ -24,6 +25,9 @@ Installation ``'debug_toolbar.middleware.DebugToolbarMiddleware',`` + Tying into middleware allows each panel to be instantiated on request and + rendering to happen on response. + #. Add a tuple called `DEBUG_TOOLBAR_PANELS` to your ``settings.py`` file that specifies the full Python path to the panel that you want included in the Toolbar. This setting looks very much like the `MIDDLEWARE_CLASSES` setting. @@ -32,12 +36,20 @@ Installation DEBUG_TOOLBAR_PANELS = ( 'debug_toolbar.panels.version.VersionDebugPanel', 'debug_toolbar.panels.sql.SQLDebugPanel', + 'debug_toolbar.panels.timer.TimerDebugPanel', ) + You can change the ordering of this tuple to customize the order of the + panels you want to display. + #. Add `debug_toolbar` to your `INSTALLED_APPS` setting so Django can find the - the template files association with the Debug Toolbar. + the template files associated with the Debug Toolbar. TODO ==== - Add more panels +- Panel idea: Show some commonly used settings from settings.py +- Panel idea: Show GET and POST variables +- Panel idea: Show HTTP header information +- Panel idea: AJAX call to show cprofile data similar to the ?prof idea - Get fancy with CSS and Javascript -- cgit v1.2.3