Django Book 翻译
菜单>:
TOC
返回
原文:
Normally, Django will load all the configuration information it needs from its own default configuration file, combined with the settings in the module given in the ``DJANGO_SETTINGS_MODULE`` environment variable. But if youre using the template system independently of the rest of Django, the environment variable approach isnt very convenient, because you probably want to configure the template system in line with the rest of your application rather than dealing with settings files and pointing to them via environment variables.
翻译:
通常,Django会从它的默认配置文件和由 ``DJANGO_SETTINGS_MODULE`` 环境变量所指定的模块中加载它需要的所有配置信息。但是当你想在非Django应用中使用模版系统的时候,采用环境变量并不是很好的方法。比起为模版系统单独采用配置文件并用环境变量来指向它,你可能更希望能够在你的应用中采用一致的配置方法来配置模版系统和其他部分
备注:
译者: