Flask visits all URL 404s and asks the boss to help see what the problem is.

writes a simple Flask Web Application, but when Debug, all URL accesses return 404

Code Project:
https://github.com/jualy007/n...

RuleMap contains many rule. Simply take a rule:
Rule"/ home" (HEAD, OPTIONS, GET)-> home.hometest

127.0.0.1:8000/home returns 404 when visiting, Debug Console log:
127.0.0.1-- [02/Jan/2019 18:25:35] "GET / home HTTP/1.1" 404-

ask the boss to help see what the problem is?

Mar.30,2022

you can try to modify your register_blueprint function. When
registers the blueprint, add a parameter url_prefix
example:

-sharp :/admin + route
app.register_blueprint(admin_bp, url_prefix='/admin')

= =

New answer

def configure_app(app, config):
    -sharp 
    -sharp app.config.from_object("configs.default.DefaultConfig")
Menu