Django Book 翻译
菜单>:
TOC
返回
原文:
In contrast, other Web development platforms couple the URL to the program. In typical PHP (`http://www.php.net/`_) applications, for example, the URL of your application is designated by where you place the code on your filesystem. In early versions of the CherryPy Python Web framework (`http://www.cherrypy.org/`_), the URL of your application corresponded to the name of the method in which your code lived. This may seem like a convenient shortcut in the short term, but it can get unmanageable in the long run.
翻译:
相比之下,其他的Web开发平台紧耦合和URL到代码中。在典型的PHP (`http://www.php.net/`_) 应用,URL的设计是通过放置代码的目录来实现。在早期的 CherryPy Python Web framework (`http://www.cherrypy.org/`_) 中,URL对应处理的的方法名。这可能在短期看起来是便利之举, 但是长期会带来难维护的问题。
备注:
译者: