Half of my Flask routes requires a variable say, /<variable>/add or /<variable>/remove. How do I create links to those locations?
/<variable>/add
/<variable>/remove
url_for() takes one argument for the function to route to but I can't add arguments?
url_for()
It takes keyword arguments for the variables:
url_for('add', variable=foo)
2.1m questions
2.1m answers
60 comments
57.0k users