title: django sitemap xml file
body: <p>hi I'm new in django I need to create a sitemap for my book modele but after doing this I can't find any xml file in my project directory .am i missed something?
   my sitemap.py is:</p>
  
  <pre><code>class BookSitemap(Sitemap):
      changefreq = "weekly"
      priority = 0.5
  
      def items(self):
          return Book.objects.all()
  
      def lastmod(self, obj):
          return obj.pub_date
  </code></pre>
  
  <p>url.py:</p>
  
  <pre><code>sitemaps = {
   'book':BookSitemap,
  }
  url(r'^sitemap.xml$',
  'django.contrib.sitemaps.views.index',
  {'sitemaps': sitemaps}),
  
  url(r'^sitemap-(?P&lt;section&gt;.+).xml$',
  'django.contrib.sitemaps.views.sitemap',
  {'sitemaps': sitemaps}),
  </code></pre>
  
  <p>setting.py</p>
  
  <pre><code>TEMPLATE_LOADERS = (
      'django.template.loaders.filesystem.Loader',
      'django.template.loaders.app_directories.Loader',
  )
  </code></pre>