fangwenxue
V2EX  ›  问与答

flask 路由问题

  •  
  •   fangwenxue · Jun 25, 2020 · 1259 views
    This topic created in 2176 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   ·   1643 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 16:39 · PVG 00:39 · LAX 09:39 · JFK 12:39
    ♥ Do have faith in what you're doing.