Answers for "How can I get the named parameters from a URL using Flask?"

0

How can I get the named parameters from a URL using Flask?

from flask import request

@app.route('/my-route')
def my_route():
  page = request.args.get('page', default = 1, type = int)
  filter = request.args.get('filter', default = '*', type = str)
Posted by: Guest on May-10-2021

Code answers related to "How can I get the named parameters from a URL using Flask?"

Browse Popular Code Answers by Language