Thank You very much!
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/MUltEa4dGogJ.
To post to this group, send email to django-users@googlegroups.com.
To un
> Exception Value: Reverse for 'entry' with arguments '('my 1st post',)'look at
> urls.py
> Date: Sun, 4 Sep 2011 22:25:50 -0700
> Subject: sitemap
> From: veva...@yandex.ru
> To: django-users@googlegroups.com
>
> Would You please help me to find a mistake?
> --- blog.model.py:
> from djan
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 wrote:
> I can't find out how to pass corrent location to the sitemap element.
> I have declared:
> def items(sel
Thanks Shawn, thats a good solution but just seems unnecessary and the
docs are misleading.
adam
On Jan 14, 6:51 pm, Shawn Milochik wrote:
> On Jan 14, 2011, at 12:19 PM, spenoir wrote:
>
> > I pretty sure I've set up my sitemaps correctly but I get this error
> > when I try to specify a custom
On Jan 14, 2011, at 12:19 PM, spenoir wrote:
> I pretty sure I've set up my sitemaps correctly but I get this error
> when I try to specify a custom template for the sitemap. anyone any
> ideas? I'm using Django 1.2
Because the function declaration doesn't accept template_name. You can replace
Alright, so I have taken it one step further. In the code below all
the items appear in the sitemap (shops from category prepaid and shops
from the category tv). Next step is to add the productgroup in the
custom sitemap url (see location code). When I try to do this, only
the first item of the slu
2007/6/16, John DeRosa <[EMAIL PROTECTED]>:
>
> David Larlet wrote:
> >
> > Any thoughts about this implementation?
>
> I think you could get rid of FakeObject() completely:
>
> class MainSitemap(Sitemap):
> priority = 0.8
>
> def items(self):
> return ["/", "/archives/", "/foo/
David Larlet wrote:
>
>
> Thanks for your suggestion, I've just done that:
>
> class FakeObject(object):
> def __init__(self, url):
> self.url = url
>
> class MainSitemap(Sitemap):
> priority = 0.8
>
> def items(self):
> return [FakeObject('/'),
> FakeOb
2007/6/15, John DeRosa <[EMAIL PROTECTED]>:
>
> David Larlet wrote:
> > 2007/6/13, John DeRosa <[EMAIL PROTECTED]>:
> >> David Larlet wrote:
> >>> 2006/12/7, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
> I've been playing with the sitemap stuff and am finding it to be quite
> slick. I do, how
David Larlet wrote:
> 2007/6/13, John DeRosa <[EMAIL PROTECTED]>:
>> David Larlet wrote:
>>> 2006/12/7, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
I've been playing with the sitemap stuff and am finding it to be quite
slick. I do, however, have some questions about some unusual cases.
>
2007/6/13, John DeRosa <[EMAIL PROTECTED]>:
>
> David Larlet wrote:
> > 2006/12/7, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
> >> I've been playing with the sitemap stuff and am finding it to be quite
> >> slick. I do, however, have some questions about some unusual cases.
> >>
> >> 1)It works beauti
David Larlet wrote:
> 2006/12/7, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
>> I've been playing with the sitemap stuff and am finding it to be quite
>> slick. I do, however, have some questions about some unusual cases.
>>
>> 1)It works beautifully for listing all the detail pages that make up a
>> l
2006/12/7, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
>
> I've been playing with the sitemap stuff and am finding it to be quite
> slick. I do, however, have some questions about some unusual cases.
>
> 1)It works beautifully for listing all the detail pages that make up a
> list view, but what about
On 5/7/07, Paul Rauch <[EMAIL PROTECTED]> wrote:
> if you take a look at the first line of
> http://www.djangoproject.com/documentation/sitemaps/
> there is written: "New in Django development version"
> meaning: No, not even in 0.96
That's incorrect. The sitemaps app was part of Django 0.96. It
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Mary schrieb:
> Does the sitemap work for version 0.95.1
> Casue when i went to this url
> http://www.djangoproject.com/documentation/0.95/sitemaps/
> it gave me error page
>
> Thanks you in advance ;
> Mary Adel
>
>
if you take a look at the first
15 matches
Mail list logo