On Jun 20, 1:42 am, kimus <[EMAIL PROTECTED]> wrote:
> Hi,
>
> URL templatetag with URL naming not working for me.
>
> application urls.py
>
> urlpatterns = patterns('',
> (r'^feeds/', include('blocks.apps.aggregator.urls')),
> )
>
> aggregator urls.py
>
> urlpatterns = patterns('',
> url(r'^(?P<feed_id>\d+)/$', 'blocks.apps.aggregator.views.feed_list',
> name="feed-detail"),
> )
>
> template html
>
> <a href="{% url blocks.feed-detail item.id %}">{{ item.id }}</>
>
> the URL templatetag doesn't return nothing.
>
> Any help will be appreciated.
>
> thank you
>
> kimus

If you're using named URLs, don't namespace them:
{% url feed-detail item.id %}

Also I don't know if there will be an issue with the - character in
the name. Better to use _ instead.

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