Chris Lamb

django-debug-toolbar-user-panel

BlogProjectsAbout

View all my projects »

Panel for the Django Debug Toolbar to easily and quickly switch between users.


A custom panel for the Django Debug Toolbar to easily and quickly switch between users.

The panel supports django.contrib.auth.models.User models that have had the username field removed.

Installation

Add debug_toolbar_user_panel to your INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    'debug_toolbar_user_panel',
    ...
)

Add debug_toolbar_user_panel.panels.UserPanel to DEBUG_TOOLBAR_PANELS:

DEBUG_TOOLBAR_PANELS = (
    'debug_toolbar_user_panel.panels.UserPanel'
    'debug_toolbar.panels.version.VersionDebugPanel',
    'debug_toolbar.panels.timer.TimerDebugPanel',
    'debug_toolbar.panels.settings_vars.SettingsVarsDebugPanel',
    'debug_toolbar.panels.headers.HeaderDebugPanel',
    'debug_toolbar.panels.request_vars.RequestVarsDebugPanel',
    'debug_toolbar.panels.sql.SQLDebugPanel',
    'debug_toolbar.panels.template.TemplateDebugPanel',
    'debug_toolbar.panels.signals.SignalDebugPanel',
    'debug_toolbar.panels.logger.LoggingPanel',
)

You can install django-debug-toolbar-user-panel from PyPI:

$ pip install django-debug-toolbar-user-panel
… or by adding django-debug-toolbar-user-panel to your requirements.txt and re-running pip install -r requirements.txt.

You can browse the source tree, create or file bugs or download the code from Git:

$ git clone https://github.com/lamby/django-debug-toolbar-user-panel

django-debug-toolbar-user-panel is released under the MIT license.

View all my projects »