Django Book 翻译
菜单>:
TOC
返回
原文:
Thats the infrastructure you need to associate articles with multiple sites in your database. With that in place, you can reuse the same Django view code for multiple sites. Continuing the ``Article`` model example, heres what an ``article_detail`` view might look like:
翻译:
这是在数据库中为多个站点进行文章关联操作的基础步骤。在适当的位置使用该技术,你可以在多个站点中重复使用同一段 Django 视图代码。继续 ``Article`` 模型范例,下面是一个可能的 ``article_detail`` 视图:
备注:
译者: