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.