> Can you give some more details, please? I cannot puzzle out what you are > currently doing here.
Hello Malcolm, It's about <a href="polls/{{ poll.id }}"> in the template. Here come the details... ### mysite/polls/templatetags/poll_tags.py from django import template from mysite.polls.models import Poll register = template.Library() def show_latest_polls(count=5): latest_polls = Poll.objects.all().order_by('-pub_date')[:count] return {'latest_polls' : latest_polls} register.inclusion_tag('latest_polls.html')(show_latest_polls) ### mysite/polls/templates/latest_polls.html <ul> {% for poll in latest_polls %} <li><a href="polls/{{ poll.id }}">{{ poll.question }}</a></li> {% endfor %} </ul> ### mysite/templates/index.html ... {% load poll_tags %} {% show_latest_polls 10 %} ... --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---