url_for

来源:互联网 发布:c语言编程实例源代码 编辑:程序博客网 时间:2024/05/29 16:27
def url_for(endpoint, **values):    """Generates a URL to the given endpoint with the method provided.    :param endpoint: the endpoint of the URL (name of the function)    :param values: the variable arguments of the URL rule    """    return _request_ctx_stack.top.url_adapter.build(endpoint, values)
0 0
原创粉丝点击