]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/urls.py
We created a sitemap index and a separate view forum.sitemap.index, not using the...
[osqa.git] / forum / urls.py
index 5c5f622c477663c0f36214b6f3bff54208395d82..e964bc48960b329c3ba0afd29d21c410c5036424 100644 (file)
@@ -33,8 +33,8 @@ urlpatterns += patterns('',
                         url(r'^$', app.readers.index, name='index'),
                         url(r'^%s(.*)' % _('nimda/'), admin.site.root),
                         
-                        url(r'^sitemap.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps},
-                            name='sitemap'),
+                        url(r'^sitemap.xml$', 'forum.sitemap.index', {'sitemaps': sitemaps}),
+                        url(r'^sitemap-(?P<section>.+)\.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps}),
 
                         (r'^favicon\.ico$', app.meta.favicon),
                         url(r'^cstyle\.css$', app.meta.custom_css, name="custom_css"),