Django Book 翻译
菜单>:
TOC
返回
原文:
This works because theres really nothing special about generic views theyre just Python functions. Like any view function, generic views expect a certain set of arguments and return ``HttpResponse`` objects. Thus, its incredibly easy to wrap a small function around a generic view that does additional work before (or after; see the next section) handing things off to the generic view.
翻译:
这是因为通用视图就是Python函数。和其他的视图函数一样,通用视图也是接受一些 参数并返回 ``HttpResponse`` 对象。因此,通过包装通用视图函数可以做更多的事。
备注:
译者: