Ticket #5702: patch

File patch, 248 bytes (added by popt <popython@…>, 17 years ago)
Line 
1Here’s the above example, rewritten to used named URL patterns:
2
3urlpatterns = patterns('',
4 url(r'/archive/(\d{4})/$', archive, name="full-archive"),
5 url(r'/archive-summary/(\d{4})/$', archive, {'summary': True}, name="arch-summary"),
6)
Back to Top