Skip to content

Instantly share code, notes, and snippets.

@ammaaim
Created June 26, 2016 11:30
Show Gist options
  • Save ammaaim/0e458f0df2602650294b4371fdb36f37 to your computer and use it in GitHub Desktop.
Save ammaaim/0e458f0df2602650294b4371fdb36f37 to your computer and use it in GitHub Desktop.
GET method arguments in Flask
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