> i want to make a link in my template dynamic. e.g. I want to click on > a "rubric" that links to a view that displays all the content. I have > the following URL patterns to reach the rubric: /rubric/view and to > reach the content /bullet/<day_id>/<rubric_id>/view --> the link i > need in the template that renders the rubrics
I'd strongly recommend you to form your url in models.py. Create a function to your bullet class named get_absolute_url() and call it in template <a href="{{ bullet.get_absolute_url }}">Today</a> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---