Or use the SHOW_TOOLBAR_CALLBACK to customize when you want the
toolbar displayed... I simply ship with what I consider reasonably
safe defaults.  For example:

# Always show the toolbar

DEBUG_TOOLBAR_CONFIG = {
    'SHOW_TOOLBAR_CALLBACK: lambda req: True,
}

# Only show toolbar for super user

def custom_show_toolbar(request):
    if request.user.is_superuser:
        return True
    return False

DEBUG_TOOLBAR_CONFIG = {
    'SHOW_TOOLBAR_CALLBACK': custom_show_toolbar,
}


-Rob

On Feb 5, 1:23 am, chefsmart <moran.cors...@gmail.com> wrote:
> If you use dcamer's forkhttp://github.com/dcramer/django-debug-toolbar
>
> you won't have to rely on INTERNAL_IPS and you can simply log in as a
> superuser to use django-debug-toolbar
>
> Regards.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to