Forums

werkzeug's url_for function doesn't work in template rendering

Hello. I made a flask application that runs correctly on localhost; when pushed here on PythonAnywhere, the testing module still pass every test; when I vist my url it raise an exception: werkzeug.routing.BuildError when rendering {{ url_for('something') }} in a template. Can be some wrong setting here?

Have you reloaded your web app from the web tab?

@yamatematica -- I agree with what @rcs1000 says. If that doesn't work, would you mind if we took a look at the code of your web app to see what's happening?