Django Book 翻译
菜单>:
TOC
返回
原文:
Although its not required that you use the sites framework, its strongly encouraged, because Django takes advantage of it in a few places. Even if your Django installation is powering only a single site, you should take a few seconds to create the site object with your ``domain`` and ``name`` , and point to its ID in your ``SITE_ID`` setting.
翻译:
尽管并不是必须的,我们还是强烈建议使用多站点框架,因为 Django 在几个地方利用了它。即使只用 Django 来支持单个网站,你也应该花一点时间用 ``domain`` 和 ``name`` 来创建站点对象,并将 ``SITE_ID`` 设置指向它的 ID 。
备注:
译者: