Hina Ch4n Hina Ch4n - 1 year ago 76
Python Question

Flask web developments passing multiple variables thru app.route

what im trying to do today is to pass multiple variables thru links to flask or just additional symbols followed by url
i have tried this




both give me a 404 error

but when i remove the "?" symbol it works fine.
Any ideas?

Answer Source

If you want to get query string parameter values the best way is to do this in your @app.route function. For example, getting the action query string parameter:

def index():
    action = request.args.get('action')
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download