diff --git a/docs/ref/contrib/sitemaps.txt b/docs/ref/contrib/sitemaps.txt index 894a07787c..5902a131a3 100644 --- a/docs/ref/contrib/sitemaps.txt +++ b/docs/ref/contrib/sitemaps.txt @@ -314,11 +314,8 @@ the sitemap. For example:: # sitemaps.py from django.contrib import sitemaps - from django.contrib.sitemaps.views import sitemap from django.core.urlresolvers import reverse - from . import views - class StaticViewSitemap(sitemaps.Sitemap): priority = 0.5 changefreq = 'daily' @@ -331,7 +328,10 @@ the sitemap. For example:: # urls.py from django.conf.urls import url + from django.contrib.sitemaps.views import sitemap + from .sitemaps import StaticViewSitemap + from . import views sitemaps = { 'static': StaticViewSitemap,