我用FlatPages显示带有.html后缀的页面。当我尝试创建像/about/policy.html这样的url页面时,我会得到错误URL is missing a trailing slash。那么,如何使FlatPages使用我想要的任何url后缀呢?现在,我在我的FlatPages类中安装了middleware中间件: ...,
'<e
我正在使用django 1.1.3,下面是一本名为“实用Django项目”的书。在我的项目文件夹中编辑.urls文件和在管理站点上为我的项目创建一个平面页面时,我遇到了一个问题。# Uncomment the admin/doc line below and add #'django.contrib.admindocs'
#to INSTALLED_APPSto enable admin documentatio