V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
fangwenxue
V2EX  ›  问与答

flask 路由问题

  •  
  •   fangwenxue · Jun 25, 2020 · 1172 views
    This topic created in 2135 days ago, the information mentioned may be changed or developed.
    @app.route('/<account>/<uid>/action')
    def user_action(account, uid, action):
    	pass
    
    127.0.0.1 - - [25/Jun/2020 00:03:56] "GET /linbing01/666/detail HTTP/1.1" 404 -
    
    • 怎么没有匹配到路由
    2 replies    2020-06-25 09:39:25 +08:00
    Trim21
        1
    Trim21  
       Jun 25, 2020 via Android
    你的 action 不是变量…
    d5
        2
    d5  
       Jun 25, 2020 via iPhone
    <action>
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1145 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 23:07 · PVG 07:07 · LAX 16:07 · JFK 19:07
    ♥ Do have faith in what you're doing.