Django Book 翻译
菜单>:
TOC
返回
原文:
Also note that your code should *not* import from either ``global_settings`` or your own settings file. ``django.conf.settings`` abstracts the concepts of default settings and site-specific settings; it presents a single interface. It also decouples the code that uses settings from the location of your settings.
翻译:
同样要注意,你的代码中 *不* 应该导入 ``global_settings`` 或者自己的settings文件。 ``django.conf.settings`` 抽象了默认的设置和每个站点的设置;它提供了一个单一的接口。并且,它也使得你所写的代码与你的设置文件的位置没有耦合。
备注:
译者: