Answers for "default argument in flask route"

3

default argument in flask route

@user.route('/<user_id>', defaults={'username': None})
@user.route('/<user_id>/<username>')
def show(user_id, username):
    pass
Posted by: Guest on June-04-2020

Python Answers by Framework

Browse Popular Code Answers by Language