root/docs/everes/20090425_django_hands_on_b/sample/blog/urls.py @ 32779

Revision 32779, 292 bytes (checked in by everes, 5 years ago)

これでいいや

Line 
1from django.conf.urls.defaults import *
2from views import detail, list
3
4urlpatterns = patterns('',
5    url(r'^(?P<username>\w+)/$$', list, name='blog_list'),
6    url(r'^(?P<username>\w+)/(?P<year>\d{4})/(?P<month>\d{1,2})/(?P<day>\d{1,2})/(?P<object_id>.*)/$', detail, name='blog_detail'),
7)
Note: See TracBrowser for help on using the browser.