From 344f37718b23c1749484d25458ebfda5033e1beb Mon Sep 17 00:00:00 2001 From: John-Scott Atlakson Date: Thu, 4 Sep 2014 21:04:53 -0400 Subject: [PATCH] Fixed imports in `Sitemap for static views` example --- docs/ref/contrib/sitemaps.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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,