On 3 sep, 20:22, catsclaw <[EMAIL PROTECTED]> wrote:
> Hi all --
>
> I've got the following code in a template:
>
> {% for entry in my_entries %}
> (url) MY_NAME,SVN_DIR: {% url mielot.views.list my_name,my_dir %}<br>
> (url) MY_NAME,ENTRY.PATH: {% url myapp.views.list my_name,entry.path
> %}<br>
> MY_NAME: {{ my_name }}<br>
> MY_DIR: {{ my_dir }}<br>
> ENTRY_PATH: {{ entry.path }}<br><br>
> {% endfor %}
>
> And I get the following output:
>
> (url) MY_NAME,MY_DIR: /myapp/test/list/
> (url) MY_NAME,ENTRY.PATH:
> MY_NAME: test
> MY_DIR: /
> ENTRY_PATH: text
>
> Why doesn't the second url template tag work?
Sorry, my crystal ball is down for maintainance - but the answer is
probably that the django.core.urlresolvers.reverse function didn't
found a match. The easiest way to check this out would be to test a
direct call to the aforementioned function in the interactive shell
using the very same parameters...
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---