Reputation: 243
I am trying to get the url parameters from a flask view:
www.domain.com/?f=x**2
How do I get x**2
from the url
in a Flask view?
Upvotes: 21
Views: 18296
Reputation: 52523
You can retrieve query string variables using
request.args.get('myParam')
or
request.args['myParam']
Where myParam
is the variable in the query string you're trying to receive.
Upvotes: 39