﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
29234	"manage.py command ""ping_google"" requires django.contrib.sites to work but it's not documented"	GOTO Hayato	nobody	"I tried to use ping_google in my Django site with the following command after adding django.contrib.sitemaps to settings.INSTALLED_APPS.

{{{
python manage.py ping_google
}}}

Then, I got an error like:

{{{
django.core.exceptions.ImproperlyConfigured: ping_google requires django.contrib.sites, which isn't installed.
}}}

Seeing the related code, it seems that the command requires django.contrib.sites to be installed to work.

{{{
def _get_sitemap_full_url(sitemap_url):
    if not django_apps.is_installed('django.contrib.sites'):
        raise ImproperlyConfigured(""ping_google requires django.contrib.sites, which isn't installed."")
}}}

https://docs.djangoproject.com/en/2.0/_modules/django/contrib/sitemaps/

I believe it's better to add some notes for this in the documentation. 

https://docs.djangoproject.com/en/2.0/ref/contrib/sitemaps/#pinging-google

(This is my first challenge to file an issue here. I'm sorry if I'm missing or misunderstanding anything crucial.)"	Cleanup/optimization	closed	Documentation	2.0	Normal	worksforme			Unreviewed	0	0	0	0	0	0
