In the short section "Naming URL patterns", here, the example is re-written as
urlpatterns = patterns('',
url(r'^archive/(\d{4})/$', archive, name="full-archive"),
url(r'^archive-summary/(\d{4})/$', archive, {'summary': True}, "arch-summary"),
)
Assuming I've understood correctly, I think it would be clearer if the second url() call also explicitly used the "name=" parameter, and also provided the extra dictionary of options as the final argument (for consistency with the earlier discussion on the same page). E.g.
urlpatterns = patterns('',
url(r'^archive/(\d{4})/$', archive, name="full-archive"),
url(r'^archive-summary/(\d{4})/$', archive, name="arch-summary", {'summary': True}),
)
(In fact, I'm not sure it's correct if written without the named parameter "name", e.g. without "name=...".)
If it's fine, and I have misunderstood, it would be nice if the documentation mentioned a short-hand is being used in the second url() call to eliminate my misunderstanding. :)
Excellent docs in general, thanks!