coderbuzz
coderbuzz

Reputation: 131

Flask - Get route URL from a function

@app.route('/this/is/the/url')
def some_exposed_func():
    return render_template("data.html")

How to get '/this/is/the/url' from some_exposed_func handle?

print 'The func URL is: %s' % get_flask_route_url(some_exposed_func)

Upvotes: 2

Views: 1941

Answers (1)

coderbuzz
coderbuzz

Reputation: 131

Found my self: url_for() is the answer

Upvotes: 6

Related Questions