On Fri, 2006-08-18 at 19:59 -0700, keukaman wrote: > I'm unclear how to generate the urls for a blog application I have. > > The source code for the djangoproject/weblog app shows this: > > <h2><a href="{{ object.get_absolute_url }}">{{ object.headline > }}</a></h2> > > When I do the same in my template I only get the absolute url of the > application, ie., http://www.websitename.com/blog/. However, it appears > that this same code generates > http://www.djangoproject.com/weblog/2006/aug/18/slug .
So what does the get_absolute_url() method of your model look like? That is where all the details are specified. Sounds like you need to tweak that a bit more. Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---