Django Book 翻译
菜单>:
TOC
返回
原文:
* It doesnt matter where on the filesystem they live, as long as theyre on your Python path so you can point to them from the ``TEMPLATE_CONTEXT_PROCESSORS`` setting. With that said, the convention is to save them in a file called ``context_processors.py`` within your app or project.
翻译:
* 只要它们存放在你的Python的搜索路径中,它们放在哪个物理路径并不重要,这样你可以在 ``TEMPLATE_CONTEXT_PROCESSORS`` 设置里指向它们。 也就是说,你要把它们放在app或者project目录里名为 ``context_processors.py`` 的文件。
备注:
译者: