from django.conf.urls import patterns, url from blog import views urlpatterns = patterns('', url(r'^$', views.index, name = 'index'), url(r'^page/(?P\d+)$', views.indexpage, name = 'indexpage'), url(r'^tag/(?P[^/]+)$', views.taglist, name = 'taglist'), url(r'^tag/(?P[^/]+)/page/(?P\d+)$', views.tagpage, name = 'tagpage'), url(r'^(?P\d+)/(?P\d+)/(?P\d+)/?$', views.datelist, name = 'datelist'), url(r'^(?P\d+)/(?P\d+)/(?P\d+)/page/(?P\d+)$', views.datepage, name = 'datepage'), url(r'^(?P\d+)/(?P\d+)/(?P\d+)/(?P[^/]+)$', views.read, name = 'read'), url(r'^code-chunk/(?P[^/]+)/(?P[^/]+)$', views.codechunk, name = 'codechunk'), url(r'^feed$', views.feed, name = 'feed'), )