2013-09-24 13:54:41 +00:00
|
|
|
from django.conf.urls import patterns, url
|
|
|
|
from blog import views
|
|
|
|
|
|
|
|
urlpatterns = patterns('',
|
2013-10-14 10:12:50 +00:00
|
|
|
url(r'^$', views.index, name='index'),
|
|
|
|
url(r'^page/(?P<page>\d+)$', views.indexpage, name='indexpage'),
|
|
|
|
url(r'^tag/(?P<tag>[^/]+)$', views.taglist, name='taglist'),
|
|
|
|
url(r'^tag/(?P<tag>[^/]+)/page/(?P<page>\d+)$', views.tagpage, name='tagpage'),
|
|
|
|
url(r'^(?P<year>\d+)/(?P<month>\d+)/(?P<day>\d+)/(?P<slug>[^/]+)$', views.read, name='read'),
|
2013-10-02 19:49:55 +00:00
|
|
|
url(r'^code-chunk/(?P<language>[^/]+)/(?P<slug>[^/]+)$', views.codechunk, name='codechunk'),
|
2013-10-14 10:12:50 +00:00
|
|
|
url(r'^feed$', views.feed, name='feed'),
|
2013-09-24 13:54:41 +00:00
|
|
|
)
|