github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

dcramer / django-debug-toolbar forked from robhudson/django-debug-toolbar

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 60
    • 86
  • Source
  • Commits
  • Network (86)
  • Issues (4)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

A debug/profiling overlay for Django — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

fixed templates 
David Cramer (author)
Thu Sep 03 13:43:28 -0700 2009
commit  a0913fdc2c5a59824bda9604eae336cce4b74bbb
tree    4e715e64dd8c4ffd688d8c28d19115f914ca3bcc
parent  8700eadfca8383e32c0f7f8b101b8c065ffb7278
django-debug-toolbar /
name age
history
message
file .gitignore Thu Sep 03 13:41:53 -0700 2009 Added setuptools script [David Cramer]
file AUTHORS.rst Tue Sep 30 01:35:49 -0700 2008 added Alex Gaynor to Authors [David Cramer]
file MANIFEST.in Thu Sep 03 13:43:28 -0700 2009 fixed templates [David Cramer]
file README.rst Sun Feb 22 13:12:25 -0800 2009 Settings panel added [unknown]
file TODO.rst Sat Oct 04 08:00:50 -0700 2008 updated list of panels and removed implemented ... [David Cramer]
directory debug_toolbar/ Fri May 08 14:55:06 -0700 2009 This is a fix for http://github.com/dcramer/dja... [fotinakis]
file setup.py Thu Sep 03 13:41:53 -0700 2009 Added setuptools script [David Cramer]
README.rst

Django Debug Toolbar

This is a fork of Rob Hudson's Debug Toolbar. It includes an alternative style, performance optimizations, and some panels which may not be available in the main repository.

The Django Debug Toolbar is a configurable set of panels that display various debug information about the current request/response. It is a small toolbar that, when activated, situates itself in the top-right location of the browser window. When particular panels are clicked, more details about that panel's content are displayed.

Currently, the following panels have been written and are working:

  • Detailed SQL queries
  • Request timer
  • Common HTTP headers
  • Cache statistics
  • HTTP variables
  • Settings variables
  • Profile module
  • Templates rendered
  • Logging message output

If you have ideas for other panels please let us know.

Installation

  1. Add the debug_toolbar directory to your Python path.

  2. Add the following middleware to your project's settings.py file:

    'debug_toolbar.middleware.DebugToolbarMiddleware',

    Tying into middleware allows each panel to be instantiated on request and rendering to happen on response.

  3. Add debug_toolbar to your INSTALLED_APPS setting so Django can find the the template files associated with the Debug Toolbar.

  4. Add your IP address to INTERNAL_IPS or login with a user who is flagged as is_superuser

  5. (Optional) 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. For example:

    # This example is all working panels, not all are active with default settings
    DEBUG_TOOLBAR_PANELS = (
        'debug_toolbar.panels.sql.SQLDebugPanel',
        'debug_toolbar.panels.headers.HeaderDebugPanel',
        'debug_toolbar.panels.cache.CacheDebugPanel',
        'debug_toolbar.panels.profiler.ProfilerDebugPanel',
        'debug_toolbar.panels.request_vars.RequestVarsDebugPanel',
            'debug_toolbar.panels.settings_vars.SettingsVarsDebugPanel',
        'debug_toolbar.panels.templates.TemplatesDebugPanel',
        # If you are using the profiler panel you don't need the timer
        # 'debug_toolbar.panels.timer.TimerDebugPanel',
    )
    

    You can change the ordering of this tuple to customize the order of the panels you want to display.

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server