Last active
February 10, 2016 20:53
-
-
Save nomeyer/a625187cf10025385a26 to your computer and use it in GitHub Desktop.
Get a query argument by name from a request 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 | |
# 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