Use request.args
to get parsed contents of query string:
from flask import request
@app.route(...)
def login():
username = request.args.get('username')
password = request.args.get('password')
More Related Contents:
- Split Python Flask app into multiple files
- Using MySQL in Flask
- Why is sudo not accepting my sudo password? [closed]
- Refering to a directory in a Flask app doesn’t work unless the path is absolute
- Get a variable from the URL in a Flask route
- Add a prefix to all Flask routes
- Post values from an HTML form and access them in a Flask view
- How do you access the query string in Flask routes?
- Is it possible to use AngularJS with the Jinja2 template engine?
- Recommendations of Python REST (web services) framework? [closed]
- Can I serve multiple clients using just Flask app.run() as standalone?
- Can Flask have optional URL parameters?
- Return JSON response from Flask view
- Why not generate the secret key every time Flask starts?
- Flask-Login raises TypeError: ‘bool’ object is not callable when trying to override is_active property
- Importing flask.ext raises ModuleNotFoundError
- Flask ImportError: No Module Named Flask
- How to build a flask application around an already existing database?
- How to get http headers in flask?
- Flask-SQLAlchemy db.create_all() raises RuntimeError working outside of application context
- Reload Flask app when template file changes
- AttributeError: ‘int’ object has no attribute ‘_sa_instance_state’
- Where does flask look for image files?
- How to show a pandas dataframe into a existing flask html table?
- How to send requests with JSON in unit tests
- Flask app “Restarting with stat”
- ValueError: Shape of passed values is (1, 6), indices imply (6, 6)
- Unable to “import matplotlib.pyplot as plt” in virtualenv
- Return a requests.Response object from Flask
- Converting matplotlib png to base64 for viewing in html template