fangwenxue
V2EX  ›  问与答

flask 路由问题

  •  
  •   fangwenxue · Jun 25, 2020 · 1576 views
    This topic created in 2323 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
    Trim21
    Jun 25, 2020 via Android
    1
    你的 action 不是变量…
    d5
    d5
    Jun 25, 2020 via iPhone
    2
    <action>
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1736 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 17:06 · PVG 01:06 · LAX 09:06 · JFK 12:06
    ♥ Do have faith in what you're doing.