flash-message

Multiple parameters in in Flask approute

你离开我真会死。 提交于 2019-11-27 10:18:06
问题 How to write the flask approute if I have multiple parameters in the URL call? Here is my URL I am calling from AJax http://0.0.0.0:8888/createcm?summary=VVV&change=Feauure I was trying to write my flask approute like this. @app.route('/test/<summary,change> ,methods=['GET'] But this is not working. Can any one suggest me how to mention the approute? 回答1: The other answers have the correct solution if you indeed want to use query params. Something like: @app.route('/createcm') def createcm():