Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
matrs opened this issue Oct 27, 2020 · 2 comments
Open

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

matrs opened this issue Oct 27, 2020 · 2 comments

Comments

@matrs
Copy link

matrs commented Oct 27, 2020

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?

@plusangel
Copy link

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">

@matrs
Copy link
Author

matrs commented Jan 12, 2021

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 .

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants