flask-wtform-tutorial icon indicating copy to clipboard operation
flask-wtform-tutorial copied to clipboard

Method not allowed when trying contact or signup - "POST / HTTP/1.1" 405

Open matrs opened this issue 4 years ago • 2 comments

Hello, thanks for the tutorial. When trying the example, testing it using make deploy, i'm getting a "POST / HTTP/1.1" 405 - so when I submit the form, i get an url with "Method Not Allowed". I really don't understand why i'm getting this error but i'm just learning flask and Flask-WTF. All the dependencies are installed and i'm not getting any other errors or warnings. Any thoughts?

matrs avatar Oct 27 '20 23:10 matrs

I had the same error.

It seems that for my case the issue was the action = "/" in the form tag in contact.jinja2 file.

So now is just like that: <form method="POST">

plusangel avatar Jan 11 '21 15:01 plusangel

I'll check this when I have some time and i can come back to my "learning flask" mode. Thank you for taking the time and try to help .

matrs avatar Jan 12 '21 20:01 matrs