Django Book 翻译
菜单>:
TOC
返回
原文:
Chapter 8 touched briefly on how youd go about making a view generic. To review, we can recognize certain common tasks, like displaying a list of objects, and write code that displays a list of *any* object. Then the model in question can be passed as an extra argument to the URLconf.
翻译:
第八章简单的接触到如何规范的让一个视图变得通用。对于复习,我们会重新认识某些通用任务,比如呈现 对象列表和写一段代码去呈现任何对象的列表。然后模型可以作为一个额外的参数传递到RLConf中。
备注:
译者: