Try something like this:

def location(self, obj):
        return reverse('path.to.your.view.function', args=[category])

and put it into your sitemap.py


On 21. Jan, 20:40 h., galago <[email protected]> wrote:
> I can't find out how to pass corrent location to the sitemap element.
> I have declared:
> def items(self):
>         return Category.objects.all()
>
> How can i generate my correct urls from my urlconf file:
> url(r'^category/(?P<category>[\w\-_]+)/$', 'show_category',
> name='show_category'),
>
> I have no idea hot to do that:/

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
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