title: sitemap.xml empty for static urls in Django
body: <p>I have a Django project and I am trying to create a sitemap for my static urls (no Models). However, when running <code>python manage.py runserver</code> and going to <code>http://127.0.0.1:8000/sitemap.xml</code>, I get it empty:</p>
  
  <pre><code>&lt;urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"&gt;&lt;/urlset&gt;
  </code></pre>
  
  <p>My code looks like this:</p>
  
  <pre><code>#urls.py
  from main_app.sitemaps import StaticSitemap
  
  sitemaps = {
      'static': StaticSitemap(),
  }
  
  urlpatterns = [
      ...
      url(r'^sitemap\.xml$', sitemap, {'sitemaps': sitemaps}),
      ...
  ]
  urlpatterns += i18n_patterns(
  ...
  )
  </code></pre>
  
  <p>and</p>
  
  <pre><code>#sitemaps.py
  from django.contrib.sitemaps import Sitemap
  from django.urls import reverse
  
  class StaticSitemap(Sitemap):
       priority = 0.5
       changefreq = 'weekly'
       i18n = True
  
       def location(self, item):
           return reverse(item)
  </code></pre>
  
  <p>The <a href="https://docs.djangoproject.com/en/1.11/ref/contrib/sitemaps/" rel="nofollow noreferrer">documentation</a> shows an example with <code>Models</code> and it modifies the function <code>items</code>; but since I do not have, I am not sure if I am missing something there.</p>
  
  <p>What am I doing wrong?</p>