debug_toolbar/toolbar.py
def is_toolbar_request(cls, request):
        """
        Determine if the request is for a DebugToolbar view.
        """
        # The primary caller of this function is in the middleware which may
        # not have resolver_match set.
        try:
            resolver_match = request.resolver_match or resolve(
                request.path, getattr(request, "urlconf", None)
            )
        except Resolver404:
            return False
        return resolver_match.namespaces and resolver_match.namespaces[-1] == APP_NAME

        Determine if the request is for a DebugToolbar view.
        
Determine if the request is for a DebugToolbar view.
Determine if the request is for a DebugToolbar view .
def is_toolbar_request(cls, request):
        try:
            resolver_match = request.resolver_match or resolve(
                request.path, getattr(request, "urlconf", None)
            )
        except Resolver404:
            return False
        return resolver_match.namespaces and resolver_match.namespaces[-1] == APP_NAME
def is_toolbar_request ( cls , request ) : try : resolver_match = request . resolver_match or resolve ( request . path , getattr ( request , "urlconf" , None ) ) except Resolver404 : return False return resolver_match . namespaces and resolver_match . namespaces [ - 1 ] == APP_NAME
Determine if the request is for a DebugToolbar view.
Determine if the request is for a DebugToolbar view .
"""
        Determine if the request is for a DebugToolbar view.
        """ # The primary caller of this function is in the middleware which may # not have resolver_match set.
cls
request