On Wed, 2007-08-15 at 12:52 -0700, MikeHowarth wrote:
> I've read through the site maps documentation, and seem to have
> followed it to the letter, however I've getting a NoReverseMatch at /
> sitemap.xml error.

Where are you getting this error from? It's not really enough to report
the error without the location. The traceback will tell you the
location. The only place I can see it might be occurring is in
contrib/sitemaps/views.py and that suggests you URL setup isn't correct:

[...]
> urlpatterns = patterns('',
>     (r'^sitemap.xml$', 'django.contrib.sitemaps.views.index',
> {'sitemaps': sitemaps}),
> )

The docs I'm looking at (in the subversion source) say to add a line
that says 

        (r'^sitemap.xml$', 'django.contrib.sitemaps.views.sitemap',
        {'sitemaps': sitemaps})

if you are creating one file or, if you are using the index version, you
need to have two URLconf entries, the second one looking something like
(again, from the docs):

        (r'^sitemap-(?P<section>.+).xml$',
        'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps})
        
In both cases, the import thing is that
django.contrib.sitemaps.views.sitemap appears in your URL conf. This si
not the case with the example you've given.

Regards,
Malcolm
        
-- 
Depression is merely anger without enthusiasm. 
http://www.pointy-stick.com/blog/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to