Friday, February 01, 2013

URL dispatcher | Django documentation | Django

URL dispatcher | Django documentation | Django: "Any URLconf tuple can have an optional third element, which should be a dictionary of extra keyword arguments to pass to the view function.

For example:

urlpatterns = patterns('blog.views',
(r'^blog/(?P\d{4})/$', 'year_archive', {'foo': 'bar'}),
)"

'via Blog this'