Here’s the above example, rewritten to used named URL patterns:

urlpatterns = patterns('',
    url(r'/archive/(\d{4})/$', archive, name="full-archive"),
    url(r'/archive-summary/(\d{4})/$', archive, {'summary': True}, name="arch-summary"),
) 
