Django Book 翻译
菜单>:
TOC
返回
原文:
Say you have a set of views that match a pattern, along with another URL that doesnt fit the pattern but whose view logic is the same. In this case, you can fake the capturing of URL values by using extra URLconf options to handle that extra URL with the same view.
翻译:
比如说你有匹配某个模式的一堆视图,以及一个并不匹配这个模式的但它的视图逻辑是一样的URL。这种情况下,你可以伪造URL值的捕捉。这主要通过使用额外URLconf参数,使得这个多出来的URL使用同一个视图。
备注:
译者: