Skip to content

Instantly share code, notes, and snippets.

@nomeyer
Last active February 10, 2016 20:53
Show Gist options
  • Save nomeyer/a625187cf10025385a26 to your computer and use it in GitHub Desktop.
Save nomeyer/a625187cf10025385a26 to your computer and use it in GitHub Desktop.
Get a query argument by name from a request in Flask
from flask import request
# here we want to get the value of user (i.e. ?user=value)
user = request.args.get('user')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment