Hello there,

I'm trying to use the "url" template function but i cant make it work.

My attempt:

urls.py:

urlpatterns = patterns('',
    url(r'^$',
        date_based.archive_index,
        entry_info,
        name = 'blog_index'),
    url(r'^(?P<year>\d{4})/(?P<month>\w{3})/(?P<day>\d{2})/(?P<slug>[-
\w]+)/$',
        date_based.object_detail,
        dict(entry_info, slug_field='slug',template_object_name =
'entry'),
        name='blog_entry'),
    url(r'^tag/(?P<tag>[^/]+(?u))/$',
        tagged_object_list,
        dict(model=Entry, paginate_by=10, allow_empty=True,
            template_object_name='entry'),
        name="tag_index"),
)

my template:

{% url tag_index tag=django %}

Django version: 0.97-pre-SVN-6920
Exception:

Request Method:         GET
Request URL:    http://localhost:8080/
Exception Type:         error
Exception Value:        unknown extension
--~--~---------~--~----~------------~-------~--~----~
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