Django Book 翻译
菜单>:
TOC
返回
原文:
The solution to this problem is Djangos flatpages application, which lives in the package ``django.contrib.flatpages`` . This application lets you manage such one-off pages via Djangos admin site, and it lets you specify templates for them using Djangos template system. It uses Django models behind the scenes, which means it stores the pages in a database, just like the rest of your data, and you can access flatpages with the standard Django database API.
翻译:
这个问题的解决方案是使用位于 ``django.contrib.flatpages`` 开发包中的 Django 简单页面(flatpages)应用程序。该应用让你能够通过 Django 超级管理站点来管理这些一次性的页面,还可以让你使用 Django 模板系统指定它们使用哪个模板。它在后台使用了 Django 模型,也就是说它将页面存放在数据库中,你也可以像对待其他数据一样用标准 Django 数据库 API 存取简单页面。
备注:
译者: