Opened 10 years ago
Closed 10 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 , 10 years ago
| Component: | Uncategorized → Documentation |
|---|---|
| Resolution: | → invalid |
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Please read below the code "
sitemapsshould be a dictionary...."