Django Book 翻译
菜单>:
TOC
返回
原文:
This setting is a tuple of callables that use the same interface as our ``custom_proc`` function above functions that take a request object as their argument and return a dictionary of items to be merged into the context. Note that the values in ``TEMPLATE_CONTEXT_PROCESSORS`` are specified as *strings* , which means the processors are required to be somewhere on your Python path (so you can refer to them from the setting).
翻译:
这个设置是一个可调用函数的Tuple,其中的每个函数使用了和上文中我们的 ``custom_proc`` 相同的接口:接收一个request对象作为参数,返回一个包含了将被合并到context中的项的字典。请注意 ``TEMPLATE_CONTEXT_PROCESSORS`` 中的值是以 *strings* 的形式给出的,这意味着这些处理器必须在你的python路径中的某处(这样你才能在设置中引用它们)
备注:
译者: