kmpekala / django-forum

Automatically exported from code.google.com/p/django-forum
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

site's sitemap will conflict with django-forum sitemap #83

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. in urls.py
from django.contrib.sitemaps import views as sitemap_views

    (r'^sitemap.xml$',sitemap_views.index, {'sitemaps': sitemaps}),
    (r'^sitemap-(?P<section>.+)\.xml$',sitemap_views.sitemap, 
{'sitemaps': sitemaps}),
    (r'^forum/', include('forum.urls')),

2.
vists www.example.com/sitemap.xml

What is the expected output? What do you see instead?
the url in sitemap.xml will be "www.example.com/forum/sitemap-
section.xml "
but it should be " www.example.com/sitemap-section.xml

What version of the product are you using? On what operating 
system?
django 1.1

Please provide any additional information below.
i'm not sure if this's the problem of django-forum.
since django.contrib.sitemap use 
'django.contrib.sitemaps.views.sitemap' for the url reversing.

Original issue reported on code.google.com by ask...@gmail.com on 17 Oct 2009 at 2:48