Opened 9 years ago

Closed 9 years ago

#26581 closed Uncategorized (invalid)

Docs for Sitemaps: Fix variable name on "Initialization" section.

Reported by: Pablo Vallejo Owned by: nobody
Component: Documentation Version: 1.9
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Link: https://docs.djangoproject.com/en/1.9/ref/contrib/sitemaps/#initialization

The variable sitemaps should be sitemap without the s.

Original:

from django.contrib.sitemaps.views import sitemap

url(r'^sitemap\.xml$', sitemap, {'sitemaps': sitemaps},
    name='django.contrib.sitemaps.views.sitemap')

Intended:

from django.contrib.sitemaps.views import sitemap

url(r'^sitemap\.xml$', sitemap, {'sitemaps': sitemap},
    name='django.contrib.sitemaps.views.sitemap')

Change History (1)

comment:1 by Tim Graham, 9 years ago

Component: UncategorizedDocumentation
Resolution: invalid
Status: newclosed

Please read below the code "sitemaps should be a dictionary...."

Note: See TracTickets for help on using tickets.
Back to Top