@app.route('/this/is/the/url')
def some_exposed_func():
return render_template("data.html")
Run Code Online (Sandbox Code Playgroud)
如何从some_exposed_func句柄获取'/ this/is/the/url' ?
print 'The func URL is: %s' % get_flask_route_url(some_exposed_func)
Run Code Online (Sandbox Code Playgroud)