Django Book 翻译
菜单>:
TOC
返回
原文:
* What happens when multiple pages need to connect to the database? Surely that database-connecting code shouldnt be duplicated in each individual CGI script, so the pragmatic thing to do would be to refactor it into a shared function.
翻译:
* 当多个动态页面需要同时连接数据库时,将会发生什么?当然,连接数据库的代码不 应该同时存在于各个独立的CGI脚本中,所以最踏实的做法是把这些代码重新组织到一个公共函数里面。
备注:
译者: