Well i\'ve this in my flask app :
@app.route(\"/changeip/\") def change_ip(ip) : return ip
Now if i invoke it like :
You should use:
app.route('/something/') def function(ip):
And when you are using url_for, you should pass value of ip aswell:
url_for('function', ip='your_ip_address')