Thank you for the help.....

On Mar 2, 5:26 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Sun, 2008-03-02 at 09:25 -0800, stranger wrote:
> > Hello group,
>
> >             I am trying to setup a blog using django on webfaction. I
> > have a get_absolute_url() in meta class of Entry model which returns
> > the url of the Entry.
>
> >   But I am getting an error stating
>
> > Exception Type:    TypeError
> > Exception Value:   Error when calling the metaclass bases __init__() got
> > an unexpected keyword argument 'get_absolute_url'
> > Exception Location:        
> > /home/japin/lib/python2.5/django/db/models/base.py
> > in add_to_class, line 167
>
> > Can you help me in this regard. Advance thanks
>
> The error tells you exactly what is wrong: Meta is not expecting a
> get_absolute_url() method or attribute. That method goes on your main
> model class.
>
> Malcolm
>
> --
> If at first you don't succeed, destroy all evidence that you 
> tried.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