fangwenxue
V2EX  ›  问与答

flask 路由问题

  •  
  •   fangwenxue · Jun 25, 2020 · 1243 views
    This topic created in 2168 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   ·   3258 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 14:10 · PVG 22:10 · LAX 07:10 · JFK 10:10
    ♥ Do have faith in what you're doing.