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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With