Django Book 翻译
菜单>:
TOC
返回
原文:
For a DRY (Dont Repeat Yourself) approach to storing your sites name and domain name, as explained in Scenario 2: Storing Your Site Name/Domain in One Place, just reference the ``name`` and ``domain`` of the current ``Site`` object. For example:
翻译:
正如情景二中所解释的那样,对于储存站名和域名的 DRY (Dont Repeat Yourself) 方法(在一个位置储存站名和域名)来说,只需引用当前 ``Site`` 对象的 ``name`` 和 ``domain`` 。例如:
备注:
译者: