V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
fangwenxue
V2EX  ›  问与答

flask 路由问题

  •  
  •   fangwenxue · 2020-06-25 00:05:54 +08:00 · 822 次点击
    这是一个创建于 1400 天前的主题,其中的信息可能已经有所发展或是发生改变。
    @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 条回复    2020-06-25 09:39:25 +08:00
    Trim21
        1
    Trim21  
       2020-06-25 00:16:52 +08:00 via Android
    你的 action 不是变量…
    d5
        2
    d5  
       2020-06-25 09:39:25 +08:00 via iPhone
    <action>
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5619 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 48ms · UTC 01:35 · PVG 09:35 · LAX 18:35 · JFK 21:35
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.