title: Static Sitemap.xml Django
body: <p>I'm new to Django and I'm trying to add a basic sitemap.xml. I only have static pages. How do I add a simple sitemap.xml so that I can access it from <a href="http://mydomain.com/sitemap.xml" rel="nofollow">http://mydomain.com/sitemap.xml</a></p>
  
  <pre><code>urls.py
  pages 
    --- templates
          ---- pages
                  -- about.html
                  -- contact.html
                  -- etc...
    --- views.py
  </code></pre>
  
  <p>In my urls.py file:</p>
  
  <pre><code>from django.conf.urls import patterns, include, url
  from django.views.generic.base import TemplateView
  from [myfolder].pages.views
  from django.contrib import admin
  from django.views.generic import RedirectView
  
  urlpatterns = patterns('',
      url(r'^$',        TemplateView.as_view(template_name='pages/home.html'), name='home'),
      url(r'^about/$',     TemplateView.as_view(template_name='about.html')),
      url(r'^sitemap\.xml/$',     TemplateView.as_view(template_name='sitemap.xml')),????
  )
  </code></pre>
  
  <p>How can I generate a sitemap based off the pages I have in templates/pages??</p>