Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

[data removed]

[data removed]

1 Answer

Chris Freeman
MOD
Chris Freeman
Treehouse Moderator 68,468 Points

An HTTP 404 is "page not found". The last issue (hopefully!) is that the test is expecting the path `/register' not "registration". Fixing the route will fix the 404 error.

From the app_tests.py:

            rv = self.app.post(
                '/register',
                data=data)

Edit: HTTP 405 errors are "method not allowed". It means the page was found but the excess method (like GET, POST) are not allowed.

Looking at your code, it looks like there isn't a methods argument in the flask route.

Try adding methods=['GET', 'POST']) to your @app.route

Chris Freeman
Chris Freeman
Treehouse Moderator 68,468 Points

Can you post your current code of this section of the tacocat.py?

Chris Freeman
Chris Freeman
Treehouse Moderator 68,468 Points

HTTP 405 errors are "method not allowed". It means the page was found but the excess method (like GET, POST) are not allowed.

Looking at your code, it looks like there isn't a methods argument in the flask route.

Try adding methods=['GET', 'POST']) to your @app.route