nomeyer
1/11/2016 - 7:58 PM

Get a query argument by name from a request in Flask

Get a query argument by name from a request in Flask

from flask import request
# here we want to get the value of user (i.e. ?user=value)
user = request.args.get('user')