I am running revision 4541 and experimenting with the new {% url
path.to.view %} syntax.

My template for displaying a set of thumbnail images is like:

{% for photo in photo_set %}
<a href="{% url artist.views.artist_photo slug=artist.slug,id=photo.id
%}">
<img src="{{ photo.thumb_url }}">
</a>
{% endfor %}

And url pattern that matches the view is
(r'^photo/(?P<slug>[-\w]+)/(?P<id>\d+)/$',
'artist.views.artist_photo'),

Images are displaying fine but the links does not appear. (i.e. {% url
artist.views.artist_photo slug=artist.slug,id=photo.id %} does not
render anything.

Do you have any idea what is wrong with my syntax?

Also I think this syntax works only if the view is defined as a string
in the urls.py. Is this true?

Thanks,
oMat


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to