Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Python Flask Basics Character Builder Starting the Builder

Noah Fields
Noah Fields
13,985 Points

Werkzeug.routing.BuildError: Could not build url for endpoint 'builder'

When I run my code, I can name the bear and press the "let's build it!" button, but when I do so I get the error contained in the title. As far as I can tell I copied Kenneth's code exactly, so I'm not sure what the problem is.

A snapshot may be seen at: https://w.trhou.se/58zad7rxuj

Thank you.

1 Answer

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Noah;

A BuildError typically occurs when the url_for() method cannot locate an endpoint that fits the description. Is builder registered with the Flask app?

Post back if you are still stuck or with further questions.

Ken

Noah Fields
Noah Fields
13,985 Points

Ah, indeed. A minor and very hard to spot typo, which I am embarrassed to admit I didn't notice, prevented builder from being registered properly. Thank you for your assistance.