Gio Borje Gio Borje - 1 year ago 94
Python Question

Create dynamic URLs in Flask with url_for()

Half of my Flask routes requires a variable say,

. How do I create links to those locations?

takes one argument for the function to route to but I can't add arguments?


It takes keyword arguments for the variables:

url_for('add', variable=foo)