Created
June 26, 2016 11:30
-
-
Save ammaaim/0e458f0df2602650294b4371fdb36f37 to your computer and use it in GitHub Desktop.
GET method arguments in Flask
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import request | |
@app.route('/data') | |
def data(): | |
# here we want to get the value of user (i.e. ?user=some-value) | |
user = request.args.get('user') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment