Werkzeug.routing.builderror With Flask Python
**difference to the suggested repeat, my error stemmed from the following line being missing in the original code session['message']=request.form['message'] wherease in the suggest
Solution 1:
You are getting that error because you don't have a route called message
and yet you are redirecting to it.
@app.route('/signup', methods=['POST'])defsignup():
session['username'] = request.form['username']
# Create a message route firstreturn redirect(url_for('message'))
Here's a sample route called message
@app.route("/message")defmessage():
return render_template("message.html")
Post a Comment for "Werkzeug.routing.builderror With Flask Python"