I know it's very simple but i'm trying since an hour to get the url parameters:
www.domain.com/?f=x**2
How do i get x**2 from the url in a Flask view?
x**2
url
([a-z]|\d+)(?=[a-z]|\d+)
\1*
I believe that 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.
myParam
request.args.get('myParam', 'myDefaultValue')
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
By posting your answer, you agree to the privacy policy and terms of service.
asked
1 year ago
viewed
5358 times
active
([a-z]|\d+)(?=[a-z]|\d+)
with\1*
. That would work for variables. – minitech♦ Dec 26 '12 at 15:45