Skip to content

Add recipes to documentation for mechanisms to enable toolbar on demand #1375

Open
@alimony

Description

@alimony

The default mechanism to enable the toolbar on internal hosts and DEBUG = True works for many people and the rest use a custom callback. But what are some common types of callbacks to enable the toolbar only when you specifically ask for it?

I've seen people do this by using an extra query parameter to the request, by checking a cookie, and some other variants. Would be nice to have a few good working examples in the documentation since this is how a lot of people want to use the debug toolbar, i.e. not on all requests but only on demand.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions