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 . To create a url similar to this, I put the following into my template <a href="{{ object.get_absolute_url }} {{ object.pub_date|date:"Y/M/d/"|lower }}{{ object.slug}}</a> Should the url be created here in the templates or is there a better way to do this? I'm pretty new to django so I'm probably not following the best practices. Thanks in advance for your help --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---