sorry, the namespace was just a test. Without the ns didn't work also.
I change it to 'feeddetail' and still didn't work !

I notice that sometimes it did work and with a refresh or another page
it didn't (!) so I disabled cache middleware and changed some names of
the urls. With some refreshes it did work.
I enabled cache again and I think is working... wtf!

I'll put this in my dev site to see if works... strange.


kimus

On Fri, 2008-06-20 at 01:09 -0700, Daniel Roseman wrote:

> 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