Module with routes never imported causes route not found
criticalconfigurationUpdated Mar 19, 2026(via Exa)
Technologies:
How to detect:
Flask only registers routes from imported modules. If a .py file with @app.route() decorators is never imported, those routes don't exist and return 404.
Recommended action:
Import route modules after app creation (import users) or inside application factory. For Blueprints, import and register inside create_app(). Verify with 'flask routes' that expected routes appear.