ソースを参照

Fixed #8804: corrected URL example in sitemaps docs

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8905 bcc190cf-cafb-0310-a4f2-bffc1f526a37
James Bennett 16 年 前
コミット
a92d511a17
1 ファイル変更1 行追加1 行削除
  1. 1 1
      docs/ref/contrib/sitemaps.txt

+ 1 - 1
docs/ref/contrib/sitemaps.txt

@@ -281,7 +281,7 @@ references individual sitemap files, one per each section defined in your
 Here is what the relevant URLconf lines would look like for the example above::
 
    (r'^sitemap.xml$', 'django.contrib.sitemaps.views.index', {'sitemaps': sitemaps})
-   (r'^sitemap-(?P<section>.+).xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps})
+   (r'^sitemap-(?P<section>.+)\.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps})
 
 This will automatically generate a :file:`sitemap.xml` file that references both
 :file:`sitemap-flatpages.xml` and :file:`sitemap-blog.xml`. The