Django Book 翻译
菜单>:
TOC
返回
原文:
but thats inelegant for a reason weve touched on multiple times in this chapter: it puts URL logic in the view. As a more elegant solution, we can take advantage of the fact that URLconfs are processed in order from top to bottom:
翻译:
不过,就如我们多次在这章提到的,这样做并不优雅:因为它把URL逻辑放在了视图中。更优雅的解决方法是,我们要利用URLconf从顶向下的解析顺序这个特点:
备注:
译者: