0
通常、鷹は優れたビジョンを持っています。これは、Pythonで鷹を見ている奇妙なもの、競合として、これら二つの経路:pythonの鷹の不当なルート競合エラー
app.add_route('/verifications/{template}/{email}', code_generation_resource)
app.add_route('/verifications/{email}/code/{code}', code_verification_resource)
エラーメッセージ:
ValueError: The URI template for this route conflicts with another route's template.
私は簡単にそれを回避することができますが、彼らは矛盾している理由私は思ったんだけど。
2番目のルートには、パスの静的な部分である '/ code /'があり、それを明確にする必要があります。 これらのルートは競合していません: 'app.add_route( '/ students/{username}'、student.Resource())' AND 'app.add_route( '/ students/{username}/cvs/{filename } '、cv.Resource()) '。 質問の対象が矛盾しているのはなぜですか? – Sincere