Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » Django
  • » sitemap() got an unexpected keyword argument 'template_name' [RSS Feed]

#1 Jan. 14, 2011 18:24:45

s.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

sitemap() got an unexpected keyword argument 'template_name'


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

--
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
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#2 Jan. 14, 2011 18:51:20

Shawn M.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

sitemap() got an unexpected keyword argument 'template_name'


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
the view with your own and have it accept the argument.

I see it's in the GIS app, which I know nothing about, but I have had to do
this in the past when a template argument was not an accepted kwarg elsewhere.

Shawn


--
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
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#3 Jan. 17, 2011 14:09:46

s.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

sitemap() got an unexpected keyword argument 'template_name'


Thanks Shawn, thats a good solution but just seems unnecessary and the
docs are misleading.

adam


On Jan 14, 6:51 pm, Shawn Milochik <sh...@milochik.com> 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 template for thesitemap. anyone any
> > ideas? I'm using Django 1.2
>
> Because the function declaration doesn't accept template_name. You can
> replace the view with your own and have it accept the argument.
>
> I see it's in the GIS app, which I know nothing about, but I have had to do
> this in the past when a template argument was not an accepted kwarg elsewhere.
>
> Shawn

--
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
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

  • Root
  • » Django
  • » sitemap() got an unexpected keyword argument 'template_name' [RSS Feed]

Board footer

Moderator control

Enjoy the 12th of December
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support