There is a currently a discussion an even newer discussion on Dev, where Jacob has proposed a new syntax, and has a patch that would allow this:
{% url django-admindocs-docroot as docroot %} Then docroot becomes a variable, containing the url, that can be used in a {% blocktrans %}, obviating the need for {% captureas %} It looks like this will make it in to 1.0. On Aug 28, 2008, at 4:01 AM, V wrote: > > thanks for the pointer, the discussion seems to be really interesting > > I'll try to give my opinion/patch as well once I come up with one :) > > V > > On Aug 25, 10:53 am, David Larlet <[EMAIL PROTECTED]> wrote: >> Le 23 août 08 à 13:45, Viktor Nagy a écrit : >> >> >> >>> Hi! >> >>> I need a url in ablocktransmessage, but I have no clue how to do it. >> >>> it would be intuitive to use >> >>> {%blocktransurl app.views.add as createurl %} >>> and then {{ createurl }} >> >>> but it didn't work for me. >> >>> could someone help me, please! >> >> Hi Viktor, >> >> You can have a look at this patchhttp://code.djangoproject.com/ticket/7239 >> the latest comment point to the discussion on the devel mailing- >> list, there is no decision yet about the right way to do this™. >> >> Hope it helps, >> David > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---