Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs] Sitemap: Fix variable name #6557

Closed
wants to merge 1 commit into from

Conversation

PabloVallejo
Copy link

Fix variable name in Sitemaps initialization code example.

Rename sitemaps to sitemap

Docs: https://docs.djangoproject.com/en/1.9/ref/contrib/sitemaps/#initialization
Ticket: https://code.djangoproject.com/ticket/26581

@@ -56,7 +56,7 @@ To activate sitemap generation on your Django site, add this line to your

from django.contrib.sitemaps.views import sitemap

url(r'^sitemap\.xml$', sitemap, {'sitemaps': sitemaps},
url(r'^sitemap\.xml$', sitemap, {'sitemaps': sitemap},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I this case I believe sitemaps should be a dict or an instance of Sitemap as described below, not the sitemap view function itself.

@charettes
Copy link
Member

Closing per ticket.

@charettes charettes closed this May 4, 2016
@PabloVallejo
Copy link
Author

Thanks a lot @charettes,

I was getting started with the Sitemaps framework and hadn't seen that part.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants