Hi,

If a use url template tag on a generic view, does urls.py supply required
arguments? For example:

urlpatterns = patterns('django.views.generic.date_based',
    (r'^arsiv/(?P<year>\d{4})/$','archive_year',{
            'template_name' : 'blog/yillar.html',
            'date_field' : 'pub_date',
            'queryset' : Post.objects.filter(yayinlandi=True),
            'extra_context' : common_data,
            'make_object_list' : True,
            'template_object_name' : 'makale'
    }),
)

Can I access this url with {% url
django.views.generic.date_based.archive_index asdfasdf.year %}

And also, I am using rss framework like this:

from feeds import LatestPosts, TagFeed
urlpatterns += patterns('',
(r'^rss/$', LatestPosts()),
(r'^tag/(?P<tag>[^/]+)/rss/$', TagFeed()),
)

Can I access this via url template tag?
-- 
http://yasar.serveblog.net/

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to