Forums

When I create a new route [@app.route] for Flask, for days I always get 404 error code

When I created a new route [@app.route] for Flask, for days I always get a 404 error code on the new routes I have made weeks ago: /api/translator/upgrade, /api/translator/upgrade/notify, /api/translator/upgrade/checker /api/translator/languages/all

Even without parameters.

Why is that?

This usually happens when the web app hasn’t been reloaded after code changes or the route isn’t correctly registered in the running version of your app.

Please make sure you’ve saved your file and clicked Reload on the Web tab after adding new routes. You can read more about fixing this here:

https://help.pythonanywhere.com/pages/Flask/