because if I want to get the link first , then get the count number . if I just use reverse() in my custom tag, I have to write like below
<a href="{% url music "rock",112 %}">xxx</a> Digg:{% access_count_url music "rock",112 %} I write the same things twice , and if I want write a link such as "add to shopping list" I have to write the same thing <a onclick="add({% url music "rock",112 %})" >Add to shopping list</a> I find the url always use more than once , so I suggest if can use like this {% url music "rock","112" as music_url %} maybe more convenience 2007/8/8, Collin Grady <[EMAIL PROTECTED]>: > > Couldn't you just use reverse() in your custom tag? > > > > > -- 欢迎访问我的博客: http://zsp.javaeye.com/ --张沈鹏 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@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-developers?hl=en -~----------~----~----~----~------~----~------~--~---