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.

urls.py looks like this:

from django.conf.urls.defaults import *
from django.contrib.sitemaps import FlatPageSitemap, GenericSitemap
from eshop.shop.models import Category,Product

product_dict = {
    'queryset': Product.objects.all(),
    'template_name': 'product.html',
    'slug_field': 'slug_field',
}

sitemaps = {
    'product': GenericSitemap(product_dict, priority=0.6),
}

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


--~--~---------~--~----~------------~-------~--~----~
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