python flask ImmutableMultiDict

后端 未结 2 1562
醉话见心
醉话见心 2021-02-01 04:28

This is my code:

@user_bp.route(\'/band\', methods=[\'GET\', \'POST\'])
def band_details():
    from include.form.User import Banddetails
    form = Banddetails         


        
2条回答
  •  终归单人心
    2021-02-01 04:52

    you can also do the following:

    d = request.form.to_dict()
    

    source: https://tedboy.github.io/flask/generated/generated/werkzeug.ImmutableMultiDict.html

提交回复
热议问题