Flask 405 Method Not Allowed how to fix
@app.route('/xxxr') def page_decider():
global buttonclicked if request.method == 'POST': if request.form.get("submit_1"): buttonclicked = buttonclicked + 1 else : return else: return
if buttonclicked == 1:
return render_template("3xxx-1.html")
elif buttonclicked == 2:
return render_template("xxx-1.html")
elif buttonclicked == 3:
return render_template("xxx-1.html")
else:
return render_template('xx.html')
when i run the website when the website uses this function to displaywhat is the next page to be displied it is shoing 405 error
please anyone can help me solve this problem
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac