def _get_route_info(self, request):
        """Return information about the current URL."""
        resolve_match = resolve(request.path)

        app_name = resolve_match.app_name    # The application namespace for the URL pattern that matches the URL.
        namespace = resolve_match.namespace  # The instance namespace for the URL pattern that matches the URL.
        url_name = resolve_match.url_name    # The name of the URL pattern that matches the URL.
        view_name = resolve_match.view_name  # Name of the view that matches the URL, incl. namespace if there's one.

        return {
            "app_name": app_name or None,
            "namespace": namespace or None,
            "url_name": url_name or None,
            "view_name": view_name or None,
        }
def _get_route_info ( self , request ) : resolve_match = resolve ( request . path ) app_name = resolve_match . app_name namespace = resolve_match . namespace url_name = resolve_match . url_name view_name = resolve_match . view_name return { "app_name" : app_name or None , "namespace" : namespace or None , "url_name" : url_name or None , "view_name" : view_name or None , }
Return information about the current URL.